@oceanbase/design 0.4.4 → 0.4.6

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 (46) hide show
  1. package/dist/design.min.js +1 -1
  2. package/es/card/index.d.ts +1 -0
  3. package/es/card/index.js +12 -8
  4. package/es/card/style/index.d.ts +1 -1
  5. package/es/card/style/index.js +9 -6
  6. package/es/config-provider/index.d.ts +6 -1
  7. package/es/config-provider/index.js +3 -1
  8. package/es/descriptions/hooks/useItems.d.ts +11 -3
  9. package/es/form/FormItem.d.ts +1 -1
  10. package/es/radio/index.d.ts +1 -1
  11. package/es/table/index.d.ts +2 -2
  12. package/es/table/index.js +4 -0
  13. package/es/table/style/index.d.ts +3 -2
  14. package/es/table/style/index.js +25 -25
  15. package/es/tabs/index.d.ts +1 -0
  16. package/es/tabs/index.js +2 -2
  17. package/es/tabs/style/index.d.ts +3 -3
  18. package/es/tabs/style/index.js +2 -2
  19. package/es/tag/style/index.d.ts +3 -2
  20. package/es/theme/default.js +3 -0
  21. package/es/theme/style/aliyun.less +33 -33
  22. package/es/theme/style/compact.less +10 -10
  23. package/es/theme/style/dark.less +36 -36
  24. package/es/theme/style/default.less +10 -10
  25. package/lib/card/index.d.ts +1 -0
  26. package/lib/card/index.js +8 -3
  27. package/lib/card/style/index.d.ts +1 -1
  28. package/lib/card/style/index.js +12 -4
  29. package/lib/config-provider/index.d.ts +6 -1
  30. package/lib/config-provider/index.js +2 -0
  31. package/lib/descriptions/hooks/useItems.d.ts +8 -0
  32. package/lib/radio/index.d.ts +1 -1
  33. package/lib/table/index.js +9 -0
  34. package/lib/table/style/index.d.ts +3 -2
  35. package/lib/table/style/index.js +52 -33
  36. package/lib/tabs/index.d.ts +1 -0
  37. package/lib/tabs/index.js +1 -1
  38. package/lib/tabs/style/index.d.ts +3 -3
  39. package/lib/tabs/style/index.js +4 -4
  40. package/lib/tag/style/index.d.ts +3 -2
  41. package/lib/theme/default.js +3 -0
  42. package/lib/theme/style/aliyun.less +33 -33
  43. package/lib/theme/style/compact.less +10 -10
  44. package/lib/theme/style/dark.less +36 -36
  45. package/lib/theme/style/default.less +10 -10
  46. package/package.json +9 -9
@@ -12,5 +12,6 @@ export interface CardProps extends AntCardProps {
12
12
  declare const _default: React.ForwardRefExoticComponent<CardProps & React.RefAttributes<HTMLDivElement>> & {
13
13
  Grid: React.FC<import("antd/es/card").CardGridProps>;
14
14
  Meta: React.FC<import("antd/es/card").CardMetaProps>;
15
+ genTableStyle: (padding: number, token: Partial<import("./style").CardToken>) => import("@ant-design/cssinjs").CSSObject;
15
16
  };
16
17
  export default _default;
package/es/card/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 = ["children", "size", "divided", "tabList", "prefixCls", "bodyStyle", "styles", "className"];
2
+ var _excluded = ["children", "size", "title", "tabList", "divided", "prefixCls", "bodyStyle", "styles", "className"];
3
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
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
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; }
@@ -12,25 +12,27 @@ import { Card as AntCard, Space, Tag } from 'antd';
12
12
  import classNames from 'classnames';
13
13
  import React, { useContext } from 'react';
14
14
  import ConfigProvider from "../config-provider";
15
- import useStyle from "./style";
15
+ import useStyle, { genTableStyle } from "./style";
16
16
  import { jsx as _jsx } from "react/jsx-runtime";
17
17
  import { jsxs as _jsxs } from "react/jsx-runtime";
18
18
  export * from 'antd/es/card/Card';
19
19
  export * from 'antd/es/card';
20
20
  var Card = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
21
- var _styles$body;
21
+ var _ref2, _styles$body;
22
22
  var children = _ref.children,
23
23
  size = _ref.size,
24
- _ref$divided = _ref.divided,
25
- divided = _ref$divided === void 0 ? true : _ref$divided,
24
+ title = _ref.title,
26
25
  tabList = _ref.tabList,
26
+ outerDivided = _ref.divided,
27
27
  customizePrefixCls = _ref.prefixCls,
28
28
  bodyStyle = _ref.bodyStyle,
29
29
  styles = _ref.styles,
30
30
  className = _ref.className,
31
31
  restProps = _objectWithoutProperties(_ref, _excluded);
32
32
  var _useContext = useContext(ConfigProvider.ConfigContext),
33
- getPrefixCls = _useContext.getPrefixCls;
33
+ getPrefixCls = _useContext.getPrefixCls,
34
+ contextCard = _useContext.card;
35
+ var divided = (_ref2 = outerDivided !== null && outerDivided !== void 0 ? outerDivided : contextCard === null || contextCard === void 0 ? void 0 : contextCard.divided) !== null && _ref2 !== void 0 ? _ref2 : true;
34
36
  var prefixCls = getPrefixCls('card', customizePrefixCls);
35
37
  var tabsPrefixCls = getPrefixCls('tabs', customizePrefixCls);
36
38
  var _useStyle = useStyle(prefixCls, tabsPrefixCls),
@@ -38,7 +40,7 @@ var Card = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
38
40
  var zeroPaddingList = [0, '0', '0px'];
39
41
  // card body has no padding
40
42
  var noBodyPadding = zeroPaddingList.includes(bodyStyle === null || bodyStyle === void 0 ? void 0 : bodyStyle.padding) || zeroPaddingList.includes(styles === null || styles === void 0 || (_styles$body = styles.body) === null || _styles$body === void 0 ? void 0 : _styles$body.padding);
41
- var cardCls = classNames(_defineProperty(_defineProperty({}, "".concat(prefixCls, "-no-divider"), !divided), "".concat(prefixCls, "-no-body-padding"), noBodyPadding), className);
43
+ var cardCls = classNames(_defineProperty(_defineProperty(_defineProperty({}, "".concat(prefixCls, "-has-title"), !!title), "".concat(prefixCls, "-no-divider"), !divided), "".concat(prefixCls, "-no-body-padding"), noBodyPadding), className);
42
44
  var newTabList = tabList === null || tabList === void 0 ? void 0 : tabList.map(function (item) {
43
45
  if (!isNullValue(item.tag)) {
44
46
  return _objectSpread(_objectSpread({}, item), {}, {
@@ -57,6 +59,7 @@ var Card = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
57
59
  return wrapSSR( /*#__PURE__*/_jsx(AntCard, _objectSpread(_objectSpread({
58
60
  ref: ref,
59
61
  size: size,
62
+ title: title,
60
63
  tabList: newTabList,
61
64
  prefixCls: customizePrefixCls,
62
65
  bodyStyle: bodyStyle,
@@ -71,5 +74,6 @@ if (process.env.NODE_ENV !== 'production') {
71
74
  }
72
75
  export default Object.assign(Card, {
73
76
  Grid: AntCard.Grid,
74
- Meta: AntCard.Meta
77
+ Meta: AntCard.Meta,
78
+ genTableStyle: genTableStyle
75
79
  });
@@ -5,7 +5,7 @@ export type CardToken = FullToken<'Card'> & {
5
5
  tabsComponentCls: string;
6
6
  tabsPrefixCls: string;
7
7
  };
8
- export declare const genTableStyle: (padding: number, token: CardToken) => CSSObject;
8
+ export declare const genTableStyle: (padding: number, token: Partial<CardToken>) => CSSObject;
9
9
  export declare const genCardStyle: GenerateStyle<CardToken>;
10
10
  declare const _default: (prefixCls: string, tabsPrefixCls: string) => {
11
11
  wrapSSR: (node: import("react").ReactNode) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
@@ -4,12 +4,13 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
4
4
  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; }
5
5
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
6
6
  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); }
7
- import { genTagStyle } from "../../tabs/style";
7
+ import { genTabsStyle } from "../../tabs/style";
8
8
  import { genComponentStyleHook } from "../../_util/genComponentStyleHook";
9
9
  export var genTableStyle = function genTableStyle(padding, token) {
10
- var antCls = token.antCls;
10
+ var componentCls = token.componentCls,
11
+ antCls = token.antCls;
11
12
  var tableComponentCls = "".concat(antCls, "-table");
12
- return _defineProperty({}, "".concat(tableComponentCls, "-wrapper"), _defineProperty(_defineProperty({}, "".concat(tableComponentCls), _defineProperty(_defineProperty({}, "".concat(tableComponentCls, "-thead > tr > th:first-child, ").concat(tableComponentCls, "-tbody > tr > td:first-child"), {
13
+ return _defineProperty(_defineProperty({}, "".concat(tableComponentCls, "-wrapper"), _defineProperty(_defineProperty({}, "".concat(tableComponentCls), _defineProperty(_defineProperty({}, "".concat(tableComponentCls, "-thead > tr > th:first-child, ").concat(tableComponentCls, "-tbody > tr > td:first-child"), {
13
14
  paddingLeft: padding
14
15
  }), "".concat(tableComponentCls, "-thead > tr > th:last-child, ").concat(tableComponentCls, "-tbody > tr > td:last-child"), {
15
16
  paddingRight: padding
@@ -17,26 +18,28 @@ export var genTableStyle = function genTableStyle(padding, token) {
17
18
  marginLeft: padding
18
19
  }), "& > li:last-child", {
19
20
  marginRight: padding
21
+ }))), "&".concat(componentCls, "-has-title").concat(componentCls, "-no-divider:not(").concat(componentCls, "-contain-tabs)"), _defineProperty({}, "".concat(componentCls, "-body"), _defineProperty({}, "& > ".concat(tableComponentCls, "-wrapper ").concat(tableComponentCls, ":not(").concat(tableComponentCls, "-bordered):first-child"), {
22
+ marginTop: -token.marginSM
20
23
  })));
21
24
  };
22
25
  export var genCardStyle = function genCardStyle(token) {
23
26
  var componentCls = token.componentCls,
24
27
  tabsComponentCls = token.tabsComponentCls,
25
28
  tabsPrefixCls = token.tabsPrefixCls,
26
- padding = token.padding,
27
29
  paddingSM = token.paddingSM,
28
30
  paddingLG = token.paddingLG;
29
31
  return _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(componentCls), _defineProperty({}, "".concat(componentCls, ":not(").concat(componentCls, "-bordered):not(").concat(componentCls, "-type-inner)"), {
30
32
  boxShadow: 'none'
31
33
  })), "".concat(componentCls).concat(componentCls, "-no-divider"), _defineProperty({}, "".concat(componentCls, "-head"), {
32
- borderBottom: 'none'
34
+ // should not remove border-bottom to avoid tabs inkbar display correctly
35
+ borderBottomColor: 'transparent'
33
36
  })), "".concat(componentCls).concat(componentCls, "-no-divider:not(").concat(componentCls, "-contain-tabs)"), _defineProperty({}, "".concat(componentCls, "-body"), {
34
37
  padding: "0 ".concat(paddingLG, "px ").concat(paddingLG, "px ").concat(paddingLG, "px")
35
38
  })), "".concat(componentCls, "-small").concat(componentCls, "-no-divider:not(").concat(componentCls, "-contain-tabs)"), _defineProperty({}, "".concat(componentCls, "-body"), {
36
39
  padding: "0 ".concat(paddingSM, "px ").concat(paddingSM, "px ").concat(paddingSM, "px")
37
40
  })), "".concat(componentCls, "-small").concat(componentCls, "-contain-tabs >").concat(componentCls, "-head"), _defineProperty({}, "".concat(componentCls, "-head-title, ").concat(componentCls, "-head-extra"), {
38
41
  paddingTop: token.paddingXS
39
- })), "".concat(componentCls).concat(componentCls, "-contain-tabs"), _defineProperty({}, "".concat(componentCls, "-head"), genTagStyle(_objectSpread(_objectSpread({}, token), {}, {
42
+ })), "".concat(componentCls).concat(componentCls, "-contain-tabs"), _defineProperty({}, "".concat(componentCls, "-head"), genTabsStyle(_objectSpread(_objectSpread({}, token), {}, {
40
43
  componentCls: tabsComponentCls,
41
44
  prefixCls: tabsPrefixCls
42
45
  })))), "".concat(componentCls).concat(componentCls, "-contain-grid"), _defineProperty({}, "".concat(componentCls, "-head"), {
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { ConfigProvider as AntConfigProvider } from 'antd';
3
3
  import type { ConfigProviderProps as AntConfigProviderProps, ConfigConsumerProps as AntConfigConsumerProps, ThemeConfig as AntThemeConfig } from 'antd/es/config-provider';
4
- import type { ComponentStyleConfig } from 'antd/es/config-provider/context';
4
+ import type { ComponentStyleConfig, CardConfig as AntCardConfig } from 'antd/es/config-provider/context';
5
5
  import type { AppProps } from 'antd/es/app';
6
6
  import type { PaginationConfig } from 'antd/es/pagination';
7
7
  import type { SpinIndicator } from 'antd/es/spin';
@@ -17,6 +17,9 @@ export interface ThemeConfig extends AntThemeConfig {
17
17
  isDark?: boolean;
18
18
  isAliyun?: boolean;
19
19
  }
20
+ export type CardConfig = AntCardConfig & {
21
+ divided?: boolean;
22
+ };
20
23
  export type SpinConfig = ComponentStyleConfig & {
21
24
  indicator?: SpinIndicator;
22
25
  };
@@ -27,6 +30,7 @@ export interface ConfigConsumerProps extends AntConfigConsumerProps {
27
30
  theme?: ThemeConfig;
28
31
  navigate?: NavigateFunction;
29
32
  hideOnSinglePage?: boolean;
33
+ card?: CardConfig;
30
34
  spin?: SpinConfig;
31
35
  table?: TableConfig;
32
36
  builtInApp?: boolean;
@@ -37,6 +41,7 @@ export interface ConfigProviderProps extends AntConfigProviderProps {
37
41
  locale?: Locale;
38
42
  navigate?: NavigateFunction;
39
43
  hideOnSinglePage?: boolean;
44
+ card?: CardConfig;
40
45
  pagination?: PaginationConfig;
41
46
  spin?: SpinConfig;
42
47
  table?: TableConfig;
@@ -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 = ["children", "theme", "locale", "navigate", "hideOnSinglePage", "collapse", "form", "spin", "table", "tabs", "injectStaticFunction", "styleProviderProps", "appProps"];
2
+ var _excluded = ["children", "theme", "locale", "navigate", "hideOnSinglePage", "card", "collapse", "form", "spin", "table", "tabs", "injectStaticFunction", "styleProviderProps", "appProps"];
3
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
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
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; }
@@ -37,6 +37,7 @@ var ConfigProvider = function ConfigProvider(_ref) {
37
37
  locale = _ref.locale,
38
38
  navigate = _ref.navigate,
39
39
  hideOnSinglePage = _ref.hideOnSinglePage,
40
+ card = _ref.card,
40
41
  collapse = _ref.collapse,
41
42
  form = _ref.form,
42
43
  spin = _ref.spin,
@@ -65,6 +66,7 @@ var ConfigProvider = function ConfigProvider(_ref) {
65
66
  var mergedLocale = merge({}, parentContext.locale, locale);
66
67
  return /*#__PURE__*/_jsx(AntConfigProvider, _objectSpread(_objectSpread({
67
68
  locale: mergedLocale,
69
+ card: merge({}, parentContext.card, card),
68
70
  collapse: merge({}, {
69
71
  expandIcon: function expandIcon(_ref2) {
70
72
  var isActive = _ref2.isActive;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import type { DescriptionsItemType } from '..';
3
3
  export default function useItems(items?: DescriptionsItemType[], children?: React.ReactNode, bordered?: boolean): {
4
- children: string | number | boolean | import("@emotion/react/types/jsx-namespace").EmotionJSX.Element | Iterable<React.ReactNode>;
4
+ children: string | number | boolean | Iterable<React.ReactNode> | import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
5
5
  span?: number | "filled" | {
6
6
  xxl?: number;
7
7
  xl?: number;
@@ -11,10 +11,18 @@ export default function useItems(items?: DescriptionsItemType[], children?: Reac
11
11
  xs?: number;
12
12
  };
13
13
  prefixCls?: string;
14
- className?: string;
15
14
  style?: React.CSSProperties;
16
- key?: React.Key;
17
15
  label?: React.ReactNode;
16
+ className?: string;
17
+ key?: React.Key;
18
+ classNames?: {
19
+ label?: string;
20
+ content?: string;
21
+ };
22
+ styles?: {
23
+ label?: React.CSSProperties;
24
+ content?: React.CSSProperties;
25
+ };
18
26
  labelStyle?: React.CSSProperties;
19
27
  contentStyle?: React.CSSProperties;
20
28
  }[];
@@ -11,7 +11,7 @@ export interface FormItemProps extends AntFormItemProps {
11
11
  }
12
12
  declare const FormItem: (<Values = any>(props: AntFormItemProps<Values>) => React.ReactElement<any, string | React.JSXElementConstructor<any>>) & {
13
13
  useStatus: () => {
14
- status?: "" | "warning" | "error" | "success" | "validating";
14
+ status?: "" | "success" | "error" | "warning" | "validating";
15
15
  errors: ReactNode[];
16
16
  warnings: ReactNode[];
17
17
  };
@@ -2,7 +2,7 @@ import type { RadioProps as AntRadioProps, RadioRef } from 'antd/es/radio';
2
2
  import React from 'react';
3
3
  export * from 'antd/es/radio';
4
4
  declare const Radio: React.ForwardRefExoticComponent<AntRadioProps & React.RefAttributes<RadioRef>> & {
5
- Group: React.MemoExoticComponent<React.ForwardRefExoticComponent<import("antd").RadioGroupProps & React.RefAttributes<HTMLDivElement>>>;
5
+ Group: React.NamedExoticComponent<import("antd").RadioGroupProps & React.RefAttributes<HTMLDivElement>>;
6
6
  Button: React.ForwardRefExoticComponent<import("antd/es/radio/radioButton").RadioButtonProps & React.RefAttributes<RadioRef>>;
7
7
  };
8
8
  export default Radio;
@@ -37,8 +37,8 @@ declare const _default: (<RecordType extends AnyObject = AnyObject>(props: Table
37
37
  SELECTION_ALL: "SELECT_ALL";
38
38
  SELECTION_INVERT: "SELECT_INVERT";
39
39
  SELECTION_NONE: "SELECT_NONE";
40
- Column: <RecordType extends import("antd/es/_util/type").AnyObject>(_: import("antd").TableColumnProps<RecordType>) => null;
41
- ColumnGroup: <RecordType_1 extends import("antd/es/_util/type").AnyObject>(_: import("antd/es/table/ColumnGroup").ColumnGroupProps<RecordType_1>) => null;
40
+ Column: <RecordType_1 extends import("antd/es/_util/type").AnyObject>(_: import("antd").TableColumnProps<RecordType_1>) => null;
41
+ ColumnGroup: <RecordType_2 extends import("antd/es/_util/type").AnyObject>(_: import("antd/es/table/ColumnGroup").ColumnGroupProps<RecordType_2>) => null;
42
42
  Summary: typeof Summary;
43
43
  useStyle: (prefixCls: string) => {
44
44
  wrapSSR: (node: ReactNode) => ReactElement<any, string | React.JSXElementConstructor<any>>;
package/es/table/index.js CHANGED
@@ -34,6 +34,7 @@ function Table(props, ref) {
34
34
  footer = props.footer,
35
35
  customPagination = props.pagination,
36
36
  rowSelection = props.rowSelection,
37
+ _rowClassName = props.rowClassName,
37
38
  toolAlertRender = props.toolAlertRender,
38
39
  toolOptionsRender = props.toolOptionsRender,
39
40
  toolSelectedContent = props.toolSelectedContent,
@@ -188,6 +189,9 @@ function Table(props, ref) {
188
189
  })
189
190
  }),
190
191
  columns: newColumns,
192
+ rowClassName: function rowClassName() {
193
+ return classNames(typeof _rowClassName === 'function' ? _rowClassName.apply(void 0, arguments) : _rowClassName, _defineProperty({}, "".concat(prefixCls, "-expand-row-by-click"), expandable === null || expandable === void 0 ? void 0 : expandable.expandRowByClick));
194
+ },
191
195
  expandable: expandable ? _objectSpread({
192
196
  columnWidth: 32
193
197
  }, expandable) : undefined,
@@ -1,7 +1,8 @@
1
1
  /// <reference types="react" />
2
- import type { FullToken, GenerateStyle } from 'antd/es/theme/internal';
2
+ import type { CSSObject } from '@ant-design/cssinjs';
3
+ import type { FullToken } from 'antd/es/theme/internal';
3
4
  export type TableToken = FullToken<'Table'>;
4
- export declare const genTableStyle: GenerateStyle<TableToken>;
5
+ export declare const genTableStyle: (token: TableToken) => CSSObject;
5
6
  declare const _default: (prefixCls: string) => {
6
7
  wrapSSR: (node: import("react").ReactNode) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
7
8
  hashId: string;
@@ -4,7 +4,7 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
4
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
5
  import { genComponentStyleHook } from "../../_util/genComponentStyleHook";
6
6
  export var genTableStyle = function genTableStyle(token) {
7
- var _ref;
7
+ var _$concat2, _ref;
8
8
  var antCls = token.antCls,
9
9
  componentCls = token.componentCls,
10
10
  colorText = token.colorText,
@@ -18,19 +18,14 @@ export var genTableStyle = function genTableStyle(token) {
18
18
  padding = token.padding,
19
19
  marginLG = token.marginLG,
20
20
  marginXS = token.marginXS;
21
- return _ref = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ref, "".concat(componentCls, "-wrapper ").concat(componentCls), _defineProperty(_defineProperty(_defineProperty(_defineProperty({
21
+ return _ref = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ref, "".concat(componentCls, "-wrapper ").concat(componentCls), _defineProperty(_defineProperty(_defineProperty({
22
22
  color: colorText,
23
23
  backgroundColor: colorBgBase,
24
24
  borderRadius: borderRadiusLG
25
25
  }, "".concat(componentCls, "-footer"), {
26
26
  borderBottom: "1px solid ".concat(colorBorderSecondary),
27
27
  borderRadius: 0
28
- }), "".concat(componentCls, "-thead, ").concat(componentCls, "-tbody"), _defineProperty({}, 'td, th', _defineProperty(_defineProperty({}, "&".concat(componentCls, "-row-expand-icon-cell"), {
29
- backgroundColor: colorBgBase,
30
- padding: "".concat(token.paddingSM, "px ").concat(token.paddingXS, "px")
31
- }), "&:not(:first-child):not(".concat(componentCls, "-selection-column):not(").concat(componentCls, "-row-expand-icon-cell)"), {
32
- paddingLeft: token.paddingXS
33
- }))), "".concat(componentCls, "-thead > tr"), _defineProperty(_defineProperty(_defineProperty({}, 'th', {
28
+ }), "".concat(componentCls, "-thead > tr"), _defineProperty(_defineProperty(_defineProperty({}, 'th', {
34
29
  // 弱化列标题
35
30
  color: colorTextSecondary,
36
31
  fontWeight: 'normal',
@@ -39,7 +34,7 @@ export var genTableStyle = function genTableStyle(token) {
39
34
  backgroundColor: colorBgBase
40
35
  }), "".concat(componentCls, "-cell-scrollbar"), {
41
36
  boxShadow: "0 1px 0 1px ".concat(colorBgBase)
42
- })), "".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"), {
37
+ })), "".concat(componentCls, "-tbody"), (_$concat2 = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_$concat2, "tr:nth-child(2n + 1):not(".concat(componentCls, "-placeholder):not(").concat(componentCls, "-row-selected):not(").concat(antCls, "-descriptions-row) > td"), {
43
38
  backgroundColor: colorBgBase
44
39
  }), "tr:nth-child(2n):not(".concat(componentCls, "-placeholder):not(").concat(componentCls, "-row-selected):not(").concat(componentCls, "-expanded-row):not(").concat(antCls, "-descriptions-row) > td"), {
45
40
  backgroundColor: colorFillQuaternary
@@ -49,6 +44,8 @@ export var genTableStyle = function genTableStyle(token) {
49
44
  backgroundColor: "".concat(colorPrimaryBg, " !important")
50
45
  }), "".concat(componentCls, "-tbody-virtual-scrollbar ").concat(componentCls, "-tbody-virtual-scrollbar-thumb"), {
51
46
  background: "".concat(token.colorFillSecondary, " !important")
47
+ }), "tr".concat(componentCls, "-expand-row-by-click"), {
48
+ cursor: 'pointer'
52
49
  }), "tr > td:has(".concat(componentCls, "-row-expand-icon-expanded)"), _defineProperty({
53
50
  borderBottom: 'none'
54
51
  }, "& ~ td", {
@@ -62,7 +59,7 @@ export var genTableStyle = function genTableStyle(token) {
62
59
  display: 'flex',
63
60
  justifyContent: 'center',
64
61
  alignItems: 'center'
65
- }), "tr > td > ".concat(componentCls, "-wrapper:only-child ").concat(componentCls), _defineProperty(_defineProperty(_defineProperty(_defineProperty({
62
+ }), _defineProperty(_$concat2, "tr > td > ".concat(componentCls, "-wrapper:only-child ").concat(componentCls), _defineProperty(_defineProperty(_defineProperty(_defineProperty({
66
63
  borderBottom: 'none'
67
64
  }, "".concat(componentCls, "-thead > tr > th"), {
68
65
  backgroundColor: token.colorFillQuaternary
@@ -72,39 +69,42 @@ export var genTableStyle = function genTableStyle(token) {
72
69
  borderRadius: 0
73
70
  }), "".concat(componentCls, "-empty-wrapper"), {
74
71
  minHeight: 'auto'
75
- })))), "".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"), {
72
+ }))))), "".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"), {
76
73
  backgroundColor: colorFillQuaternary
77
74
  }), "tr:nth-child(2n):not(".concat(componentCls, "-placeholder):not(").concat(componentCls, "-row-selected):not(").concat(componentCls, "-expanded-row):not(").concat(antCls, "-descriptions-row) > td"), {
78
75
  backgroundColor: colorBgBase
79
76
  }))), "".concat(componentCls, "-wrapper ").concat(componentCls).concat(componentCls, "-bordered"), _defineProperty({}, "".concat(componentCls, "-footer"), {
80
77
  borderRadius: "0px 0px ".concat(token.borderRadiusLG, "px ").concat(token.borderRadiusLG, "px")
81
- })), "".concat(componentCls, "-wrapper:not(").concat(componentCls, "-has-footer) ").concat(componentCls).concat(componentCls, "-bordered"), _defineProperty(_defineProperty({}, "".concat(componentCls, "-container"), {
82
- borderRadius: token.borderRadiusLG
83
- }), "".concat(componentCls, "-tbody"), _defineProperty(_defineProperty({}, "tr:last-child >*:first-child", {
84
- borderEndStartRadius: token.borderRadiusLG
85
- }), "tr:last-child >*:last-child", {
86
- borderEndEndRadius: token.borderRadiusLG
87
- }))), "".concat(componentCls, "-wrapper:not(").concat(componentCls, "-expandable):not(").concat(componentCls, "-has-footer) ").concat(componentCls, ":not(").concat(componentCls, "-bordered):not(").concat(componentCls, "-empty)"), {
78
+ })), "".concat(componentCls, "-wrapper ").concat(componentCls, ":not(").concat(componentCls, "-bordered)"), _defineProperty({}, "".concat(componentCls, "-thead, ").concat(componentCls, "-tbody"), _defineProperty({}, 'td, th', _defineProperty(_defineProperty({}, "&".concat(componentCls, "-row-expand-icon-cell"), {
79
+ backgroundColor: colorBgBase,
80
+ // 设置 paddingRight 即可
81
+ paddingRight: token.paddingXS
82
+ }), "&".concat(componentCls, "-selection-column, &").concat(componentCls, "-row-expand-icon-cell"), _defineProperty({}, "& + td, & + th", {
83
+ paddingLeft: token.paddingXS
84
+ }))))), "".concat(componentCls, "-wrapper:not(").concat(componentCls, "-expandable):not(").concat(componentCls, "-has-footer) ").concat(componentCls, ":not(").concat(componentCls, "-bordered):not(").concat(componentCls, "-empty)"), {
88
85
  borderBottom: "1px solid ".concat(colorBorderSecondary),
89
- borderRadius: 0
86
+ borderBottomLeftRadius: 0,
87
+ borderBottomRightRadius: 0
90
88
  }), "".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"), {
91
89
  border: 'none'
92
- })))), "".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', {
90
+ })))), "".concat(componentCls, "-wrapper").concat(componentCls, "-expandable"), _defineProperty(_defineProperty({}, "".concat(componentCls), _defineProperty({}, "".concat(componentCls, "-tbody"), _defineProperty(_defineProperty(_defineProperty({}, "tr:nth-child(2n):not(".concat(componentCls, "-placeholder):not(").concat(componentCls, "-row-selected):not(").concat(componentCls, "-expanded-row)"), _defineProperty(_defineProperty({}, '& > td', {
93
91
  backgroundColor: colorBgBase
94
92
  }), '&:hover', {
95
93
  td: {
96
94
  backgroundColor: colorPrimaryBg
97
95
  }
96
+ })), "".concat(componentCls, "-expanded-row > td"), _defineProperty({}, "& > *:not(".concat(componentCls, "-wrapper)"), {
97
+ marginLeft: token.marginXL + token.lineWidth * 2
98
98
  })), "tr > td > ".concat(componentCls, "-wrapper:only-child ").concat(componentCls), {
99
- marginLeft: token.marginXS + token.lineWidth * 2
99
+ marginLeft: token.margin + token.lineWidth * 2
100
100
  }))), "".concat(componentCls, "-middle, ").concat(componentCls, "-small"), _defineProperty({}, "".concat(componentCls, "-tbody"), _defineProperty({}, "tr > td > ".concat(componentCls, "-wrapper:only-child ").concat(componentCls), {
101
- marginLeft: token.marginXS + token.lineWidth * 2 + token.margin
101
+ marginLeft: token.margin + token.lineWidth * 2 + token.margin
102
102
  })))), "".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)"), {
103
- marginLeft: token.marginLG + token.marginXL + token.lineWidth * 2
103
+ marginLeft: token.marginXL + token.marginXL + token.lineWidth * 2
104
104
  })), "tr > td > ".concat(componentCls, "-wrapper:only-child ").concat(componentCls), {
105
- marginLeft: token.marginXS + token.marginXL + token.lineWidth * 2
105
+ marginLeft: token.margin + token.marginXL + token.lineWidth * 2
106
106
  }))), "".concat(componentCls, "-middle, ").concat(componentCls, "-small"), _defineProperty({}, "".concat(componentCls, "-tbody"), _defineProperty({}, "tr > td > ".concat(componentCls, "-wrapper:only-child ").concat(componentCls), {
107
- marginLeft: token.marginXS + token.marginXL + token.lineWidth * 2 + token.margin
107
+ marginLeft: token.margin + token.marginXL + token.lineWidth * 2 + token.margin
108
108
  })))), "".concat(componentCls, "-wrapper ").concat(antCls, "-spin-blur"), _defineProperty({}, "".concat(componentCls, "-tbody"), _defineProperty({}, "".concat(componentCls, "-placeholder"), {
109
109
  // hide empty when Table loading
110
110
  visibility: 'hidden'
@@ -19,6 +19,7 @@ export type TabsPosition = AntTabsPosition;
19
19
  declare const Tabs: {
20
20
  ({ children, items, type, tabPosition, prefixCls: customizePrefixCls, className, ...restProps }: TabsProps): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
21
21
  TabPane: React.FC<TabPaneProps>;
22
+ genTabsStyle: (token: Partial<import("./style").TabsToken>) => import("@ant-design/cssinjs").CSSObject;
22
23
  displayName: string;
23
24
  };
24
25
  export default Tabs;
package/es/tabs/index.js CHANGED
@@ -13,7 +13,7 @@ import React, { useContext } from 'react';
13
13
  import classNames from 'classnames';
14
14
  import ConfigProvider from "../config-provider";
15
15
  import useLegacyItems from "./hooks/useLegacyItems";
16
- import useStyle from "./style";
16
+ import useStyle, { genTabsStyle } from "./style";
17
17
  import TabPane from "./TabPane";
18
18
  import { jsx as _jsx } from "react/jsx-runtime";
19
19
  import { jsxs as _jsxs } from "react/jsx-runtime";
@@ -68,12 +68,12 @@ var Tabs = function Tabs(_ref) {
68
68
  items: newItems,
69
69
  type: type,
70
70
  tabPosition: tabPosition,
71
- tabBarGutter: !type || type === 'line' ? isHorizontal ? 24 : 0 : undefined,
72
71
  prefixCls: customizePrefixCls,
73
72
  className: tabsCls
74
73
  }, restProps)));
75
74
  };
76
75
  Tabs.TabPane = TabPane;
76
+ Tabs.genTabsStyle = genTabsStyle;
77
77
  if (process.env.NODE_ENV !== 'production') {
78
78
  Tabs.displayName = AntTabs.displayName;
79
79
  }
@@ -1,8 +1,8 @@
1
1
  /// <reference types="react" />
2
- import type { FullToken, GenerateStyle } from 'antd/es/theme/internal';
2
+ import type { CSSObject } from '@ant-design/cssinjs';
3
+ import type { FullToken } from 'antd/es/theme/internal';
3
4
  export type TabsToken = FullToken<'Tabs'>;
4
- export type CardToken = FullToken<'Card'>;
5
- export declare const genTagStyle: GenerateStyle<TabsToken | CardToken>;
5
+ export declare const genTabsStyle: (token: Partial<TabsToken>) => CSSObject;
6
6
  declare const _default: (prefixCls: string) => {
7
7
  wrapSSR: (node: import("react").ReactNode) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
8
8
  hashId: string;
@@ -3,7 +3,7 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
3
3
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
4
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
5
  import { genComponentStyleHook } from "../../_util/genComponentStyleHook";
6
- export var genTagStyle = function genTagStyle(token) {
6
+ export var genTabsStyle = function genTabsStyle(token) {
7
7
  var antCls = token.antCls,
8
8
  componentCls = token.componentCls,
9
9
  colorInfo = token.colorInfo,
@@ -40,7 +40,7 @@ export var genTagStyle = function genTagStyle(token) {
40
40
  };
41
41
  export default (function (prefixCls) {
42
42
  var useStyle = genComponentStyleHook('Tabs', function (token) {
43
- return [genTagStyle(token)];
43
+ return [genTabsStyle(token)];
44
44
  });
45
45
  return useStyle(prefixCls);
46
46
  });
@@ -1,9 +1,10 @@
1
1
  /// <reference types="react" />
2
- import { type FullToken, type GenerateStyle } from 'antd/es/theme/internal';
2
+ import { type FullToken } from 'antd/es/theme/internal';
3
+ import type { CSSObject } from '@ant-design/cssinjs';
3
4
  export type TagToken = FullToken<'Tag'> & {
4
5
  tagPaddingHorizontal: number;
5
6
  };
6
- export declare const genTagStyle: GenerateStyle<TagToken>;
7
+ export declare const genTagStyle: (token: TagToken) => CSSObject;
7
8
  declare const _default: (prefixCls: string) => {
8
9
  wrapSSR: (node: import("react").ReactNode) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
9
10
  hashId: string;
@@ -120,6 +120,9 @@ var defaultTheme = {
120
120
  handleActiveColor: '#5189fb',
121
121
  handleColorDisabled: '#b3ccff'
122
122
  },
123
+ Tabs: {
124
+ horizontalItemGutter: 24
125
+ },
123
126
  Tag: {
124
127
  defaultColor: '#5c6b8a',
125
128
  colorBorder: tagColorBorder
@@ -305,20 +305,20 @@
305
305
  @lime-10: #254000;
306
306
  @lime10: #254000;
307
307
  @colorText: rgba(0, 0, 0, 0.85);
308
- @colorTextSecondary: rgba(0, 0, 0, 0.65);
309
- @colorTextTertiary: rgba(0, 0, 0, 0.45);
310
- @colorTextQuaternary: rgba(0, 0, 0, 0.25);
311
- @colorFill: rgba(0, 0, 0, 0.15);
312
- @colorFillSecondary: rgba(0, 0, 0, 0.06);
313
- @colorFillTertiary: rgba(0, 0, 0, 0.04);
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);
308
+ @colorTextSecondary: rgba(0,0,0,0.65);
309
+ @colorTextTertiary: rgba(0,0,0,0.45);
310
+ @colorTextQuaternary: rgba(0,0,0,0.25);
311
+ @colorFill: rgba(0,0,0,0.15);
312
+ @colorFillSecondary: rgba(0,0,0,0.06);
313
+ @colorFillTertiary: rgba(0,0,0,0.04);
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);
318
318
  @colorBgLayout: #f2f3f5;
319
319
  @colorBgContainer: #ffffff;
320
320
  @colorBgElevated: #ffffff;
321
- @colorBgSpotlight: rgba(0, 0, 0, 0.85);
321
+ @colorBgSpotlight: rgba(0,0,0,0.85);
322
322
  @colorBgBlur: transparent;
323
323
  @colorBorder: #dedede;
324
324
  @colorBorderSecondary: #ebebeb;
@@ -371,7 +371,7 @@
371
371
  @colorInfoTextActive: #0053d9;
372
372
  @colorLinkHover: #0064C8;
373
373
  @colorLinkActive: #0053d9;
374
- @colorBgMask: rgba(0, 0, 0, 0.45);
374
+ @colorBgMask: rgba(0,0,0,0.45);
375
375
  @colorWhite: #fff;
376
376
  @fontSizeSM: 12;
377
377
  @fontSizeLG: 16;
@@ -414,33 +414,33 @@
414
414
  @borderRadiusOuter: 4;
415
415
  @colorTextHeading: rgba(0, 0, 0, 0.85);
416
416
  @controlOutlineWidth: 2;
417
- @controlOutline: rgba(5, 145, 255, 0.1);
418
- @colorFillContent: rgba(0, 0, 0, 0.06);
419
- @colorFillContentHover: rgba(0, 0, 0, 0.15);
420
- @colorFillAlter: rgba(0, 0, 0, 0.02);
421
- @colorBgContainerDisabled: rgba(0, 0, 0, 0.04);
417
+ @controlOutline: rgba(5,145,255,0.1);
418
+ @colorFillContent: rgba(0,0,0,0.06);
419
+ @colorFillContentHover: rgba(0,0,0,0.15);
420
+ @colorFillAlter: rgba(0,0,0,0.02);
421
+ @colorBgContainerDisabled: rgba(0,0,0,0.04);
422
422
  @colorBorderBg: #ffffff;
423
- @colorSplit: rgba(5, 5, 5, 0.08);
424
- @colorTextPlaceholder: rgba(0, 0, 0, 0.25);
425
- @colorTextDisabled: rgba(0, 0, 0, 0.25);
426
- @colorTextLabel: rgba(0, 0, 0, 0.65);
427
- @colorTextDescription: rgba(0, 0, 0, 0.45);
423
+ @colorSplit: rgba(5,5,5,0.08);
424
+ @colorTextPlaceholder: rgba(0,0,0,0.25);
425
+ @colorTextDisabled: rgba(0,0,0,0.25);
426
+ @colorTextLabel: rgba(0,0,0,0.65);
427
+ @colorTextDescription: rgba(0,0,0,0.45);
428
428
  @colorTextLightSolid: #fff;
429
429
  @colorHighlight: #d93026;
430
- @colorBgTextHover: rgba(0, 0, 0, 0.06);
431
- @colorBgTextActive: rgba(0, 0, 0, 0.15);
432
- @colorIcon: rgba(0, 0, 0, 0.45);
430
+ @colorBgTextHover: rgba(0,0,0,0.06);
431
+ @colorBgTextActive: rgba(0,0,0,0.15);
432
+ @colorIcon: rgba(0,0,0,0.45);
433
433
  @colorIconHover: rgba(0, 0, 0, 0.85);
434
- @colorErrorOutline: rgba(255, 38, 5, 0.06);
435
- @colorWarningOutline: rgba(255, 195, 5, 0.1);
434
+ @colorErrorOutline: rgba(255,38,5,0.06);
435
+ @colorWarningOutline: rgba(255,195,5,0.1);
436
436
  @fontSizeIcon: 12;
437
437
  @lineWidthFocus: 3;
438
438
  @controlInteractiveSize: 16;
439
- @controlItemBgHover: rgba(0, 0, 0, 0.04);
439
+ @controlItemBgHover: rgba(0,0,0,0.04);
440
440
  @controlItemBgActive: #e6f4ff;
441
441
  @controlItemBgActiveHover: #a3d6ff;
442
- @controlItemBgActiveDisabled: rgba(0, 0, 0, 0.15);
443
- @controlTmpOutline: rgba(0, 0, 0, 0.02);
442
+ @controlItemBgActiveDisabled: rgba(0,0,0,0.15);
443
+ @controlTmpOutline: rgba(0,0,0,0.02);
444
444
  @fontWeightStrong: 600;
445
445
  @opacityLoading: 0.65;
446
446
  @linkDecoration: none;
@@ -503,9 +503,9 @@
503
503
  @screenXXLMin: 1600;
504
504
  @boxShadowPopoverArrow: 2px 2px 5px rgba(0, 0, 0, 0.05);
505
505
  @boxShadowCard:
506
- 0 1px 2px -2px rgba(0, 0, 0, 0.16),
507
- 0 3px 6px 0 rgba(0, 0, 0, 0.12),
508
- 0 5px 12px 4px rgba(0, 0, 0, 0.09)
506
+ 0 1px 2px -2px rgba(0,0,0,0.16),
507
+ 0 3px 6px 0 rgba(0,0,0,0.12),
508
+ 0 5px 12px 4px rgba(0,0,0,0.09)
509
509
  ;
510
510
  @boxShadowDrawerRight:
511
511
  -6px 0 16px 0 rgba(0, 0, 0, 0.08),