@oceanbase/design 0.4.8 → 0.4.10

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 (73) hide show
  1. package/dist/design.min.js +1 -1
  2. package/es/_util/index.d.ts +1 -0
  3. package/es/_util/index.js +25 -0
  4. package/es/alert/index.d.ts +2 -2
  5. package/es/alert/index.js +13 -3
  6. package/es/card/index.js +5 -4
  7. package/es/card/style/index.js +9 -7
  8. package/es/config-provider/index.d.ts +1 -1
  9. package/es/config-provider/index.js +7 -6
  10. package/es/descriptions/hooks/useItems.d.ts +6 -6
  11. package/es/descriptions/hooks/useItems.js +9 -1
  12. package/es/descriptions/index.js +3 -2
  13. package/es/descriptions/style/index.d.ts +3 -0
  14. package/es/descriptions/style/index.js +30 -3
  15. package/es/dropdown/dropdown-button.d.ts +8 -0
  16. package/es/dropdown/dropdown-button.js +23 -0
  17. package/es/dropdown/index.d.ts +10 -0
  18. package/es/dropdown/index.js +17 -1
  19. package/es/empty/colored.js +7 -4
  20. package/es/empty/database.js +7 -4
  21. package/es/empty/guide.js +7 -4
  22. package/es/form/FormItem.d.ts +13 -8
  23. package/es/form/FormItem.js +34 -8
  24. package/es/form/index.js +22 -12
  25. package/es/form/style/index.d.ts +9 -0
  26. package/es/form/style/index.js +20 -0
  27. package/es/index.d.ts +2 -0
  28. package/es/index.js +1 -0
  29. package/es/list/index.d.ts +1 -1
  30. package/es/modal/Progress.d.ts +1 -1
  31. package/es/result/404.js +14 -8
  32. package/es/result/500.js +7 -4
  33. package/es/result/Error.js +9 -5
  34. package/es/result/Processing.js +9 -5
  35. package/es/result/Success.js +39 -24
  36. package/es/result/Warning.js +9 -5
  37. package/es/table/index.d.ts +1 -0
  38. package/es/table/index.js +7 -2
  39. package/es/table/style/index.js +17 -6
  40. package/es/tooltip/ReactStickyMouseTooltip.d.ts +1 -1
  41. package/es/tree-select/index.d.ts +1 -1
  42. package/lib/_util/index.d.ts +1 -0
  43. package/lib/_util/index.js +49 -0
  44. package/lib/alert/index.d.ts +2 -2
  45. package/lib/alert/index.js +21 -2
  46. package/lib/card/index.js +3 -3
  47. package/lib/card/style/index.js +15 -16
  48. package/lib/config-provider/index.d.ts +1 -1
  49. package/lib/config-provider/index.js +6 -4
  50. package/lib/descriptions/hooks/useItems.d.ts +6 -6
  51. package/lib/descriptions/hooks/useItems.js +18 -2
  52. package/lib/descriptions/index.js +5 -2
  53. package/lib/descriptions/style/index.d.ts +3 -0
  54. package/lib/descriptions/style/index.js +47 -4
  55. package/lib/dropdown/dropdown-button.d.ts +8 -0
  56. package/lib/dropdown/dropdown-button.js +42 -0
  57. package/lib/dropdown/index.d.ts +10 -0
  58. package/lib/dropdown/index.js +27 -1
  59. package/lib/form/FormItem.d.ts +13 -8
  60. package/lib/form/FormItem.js +34 -12
  61. package/lib/form/index.js +15 -3
  62. package/lib/form/style/index.d.ts +9 -0
  63. package/lib/form/style/index.js +52 -0
  64. package/lib/index.d.ts +2 -0
  65. package/lib/index.js +3 -0
  66. package/lib/list/index.d.ts +1 -1
  67. package/lib/modal/Progress.d.ts +1 -1
  68. package/lib/table/index.d.ts +3 -2
  69. package/lib/table/index.js +8 -2
  70. package/lib/table/style/index.js +26 -3
  71. package/lib/tooltip/ReactStickyMouseTooltip.d.ts +1 -1
  72. package/lib/tree-select/index.d.ts +1 -1
  73. package/package.json +8 -7
@@ -1,4 +1,4 @@
1
- var _excluded = ["children", "tooltip"],
1
+ var _excluded = ["children", "label", "tooltip", "action", "layout", "prefixCls", "className"],
2
2
  _excluded2 = ["icon", "type", "overlayInnerStyle"];
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; }
@@ -8,17 +8,36 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
8
8
  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); }
9
9
  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; }
10
10
  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; }
11
+ import React, { useContext } from 'react';
11
12
  import { Form as AntForm } from 'antd';
12
- import React from 'react';
13
- import { useTooltipTypeList } from "../tooltip/hooks/useTooltipTypeList";
13
+ import { FormContext } from 'antd/es/form/context';
14
14
  import { isPlainObject } from 'lodash';
15
+ import classNames from 'classnames';
16
+ import ConfigProvider from "../config-provider";
17
+ import { useTooltipTypeList } from "../tooltip/hooks/useTooltipTypeList";
18
+ import useStyle from "./style";
15
19
  import { jsx as _jsx } from "react/jsx-runtime";
20
+ import { Fragment as _Fragment } from "react/jsx-runtime";
21
+ import { jsxs as _jsxs } from "react/jsx-runtime";
16
22
  var AntFormItem = AntForm.Item;
17
- var Item = function Item(_ref) {
23
+ var FormItem = function FormItem(_ref) {
18
24
  var _children$type;
19
25
  var children = _ref.children,
26
+ label = _ref.label,
20
27
  tooltip = _ref.tooltip,
28
+ action = _ref.action,
29
+ layout = _ref.layout,
30
+ customizePrefixCls = _ref.prefixCls,
31
+ className = _ref.className,
21
32
  restProps = _objectWithoutProperties(_ref, _excluded);
33
+ var _useContext = useContext(ConfigProvider.ConfigContext),
34
+ getPrefixCls = _useContext.getPrefixCls;
35
+ var prefixCls = getPrefixCls('form', customizePrefixCls);
36
+ var _useStyle = useStyle(prefixCls),
37
+ wrapSSR = _useStyle.wrapSSR;
38
+ var formItemCls = classNames(className);
39
+ var _useContext2 = useContext(FormContext),
40
+ vertical = _useContext2.vertical;
22
41
  var typeList = useTooltipTypeList();
23
42
  // tooltip config
24
43
  if (_typeof(tooltip) === 'object' && ! /*#__PURE__*/React.isValidElement(tooltip)) {
@@ -37,16 +56,23 @@ var Item = function Item(_ref) {
37
56
  }, overlayInnerStyle)
38
57
  }, restTooltipProps);
39
58
  }
40
- return /*#__PURE__*/_jsx(AntFormItem, _objectSpread(_objectSpread({
59
+ return wrapSSR( /*#__PURE__*/_jsx(AntFormItem, _objectSpread(_objectSpread({
60
+ label: action && (vertical || layout === 'vertical') ? /*#__PURE__*/_jsxs(_Fragment, {
61
+ children: [label, action && /*#__PURE__*/_jsx("span", {
62
+ className: "".concat(prefixCls, "-item-action"),
63
+ children: action
64
+ })]
65
+ }) : label,
41
66
  tooltip: tooltip
42
67
  // auto set required for Switch children to hide optional mark
43
68
  // @ts-ignore
44
69
  ,
45
- required: isPlainObject(children) && (_children$type = children.type) !== null && _children$type !== void 0 && _children$type.__ANT_SWITCH ? true : undefined
70
+ required: isPlainObject(children) && (_children$type = children.type) !== null && _children$type !== void 0 && _children$type.__ANT_SWITCH ? true : undefined,
71
+ prefixCls: customizePrefixCls,
72
+ className: formItemCls
46
73
  }, restProps), {}, {
47
74
  children: children
48
- }));
75
+ })));
49
76
  };
50
- var FormItem = Item;
51
77
  FormItem.useStatus = AntFormItem.useStatus;
52
78
  export default FormItem;
package/es/form/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 = ["hideRequiredMark"];
2
+ var _excluded = ["hideRequiredMark", "prefixCls", "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; }
@@ -9,26 +9,36 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
9
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
10
  import React, { useContext } from 'react';
11
11
  import { Form as AntForm } from 'antd';
12
+ import classNames from 'classnames';
12
13
  import ConfigProvider from "../config-provider";
13
14
  import Item from "./FormItem";
15
+ import useStyle from "./style";
14
16
  import { jsx as _jsx } from "react/jsx-runtime";
15
17
  export * from 'antd/es/form';
16
18
  var Form = function Form(_ref) {
17
19
  var hideRequiredMark = _ref.hideRequiredMark,
20
+ customizePrefixCls = _ref.prefixCls,
21
+ className = _ref.className,
18
22
  restProps = _objectWithoutProperties(_ref, _excluded);
19
23
  var _useContext = useContext(ConfigProvider.ConfigContext),
24
+ getPrefixCls = _useContext.getPrefixCls,
20
25
  contextForm = _useContext.form;
21
- return (
22
- /*#__PURE__*/
23
- // @ts-ignore to ignore children type error
24
- _jsx(AntForm, _objectSpread({
25
- requiredMark:
26
- // could remove hideRequiredMark logic after https://github.com/ant-design/ant-design/pull/46299 is published
27
- hideRequiredMark ? false : (contextForm === null || contextForm === void 0 ? void 0 : contextForm.requiredMark) !== undefined ? contextForm === null || contextForm === void 0 ? void 0 : contextForm.requiredMark : 'optional',
28
- hideRequiredMark: hideRequiredMark,
29
- preserve: false
30
- }, restProps))
31
- );
26
+ var prefixCls = getPrefixCls('form', customizePrefixCls);
27
+ var _useStyle = useStyle(prefixCls),
28
+ wrapSSR = _useStyle.wrapSSR;
29
+ var formCls = classNames(className);
30
+ return wrapSSR(
31
+ /*#__PURE__*/
32
+ // @ts-ignore to ignore children type error
33
+ _jsx(AntForm, _objectSpread({
34
+ requiredMark:
35
+ // could remove hideRequiredMark logic after https://github.com/ant-design/ant-design/pull/46299 is published
36
+ hideRequiredMark ? false : (contextForm === null || contextForm === void 0 ? void 0 : contextForm.requiredMark) !== undefined ? contextForm === null || contextForm === void 0 ? void 0 : contextForm.requiredMark : 'optional',
37
+ hideRequiredMark: hideRequiredMark,
38
+ preserve: false,
39
+ prefixCls: customizePrefixCls,
40
+ className: formCls
41
+ }, restProps)));
32
42
  };
33
43
  Form.Item = Item;
34
44
  Form.List = AntForm.List;
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ import type { FullToken, GenerateStyle } from 'antd/es/theme/internal';
3
+ export type FormToken = FullToken<'Form'>;
4
+ export declare const genFormStyle: GenerateStyle<FormToken>;
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,20 @@
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 genFormStyle = function genFormStyle(token) {
7
+ var componentCls = token.componentCls;
8
+ return _defineProperty({}, "".concat(componentCls).concat(componentCls, "-vertical"), _defineProperty({}, "".concat(componentCls, "-item:not(").concat(componentCls, "-item-horizontal)"), _defineProperty({}, "".concat(componentCls, "-item-label > label"), _defineProperty({
9
+ width: '100%'
10
+ }, "".concat(componentCls, "-item-action"), {
11
+ position: 'absolute',
12
+ right: 0
13
+ }))));
14
+ };
15
+ export default (function (prefixCls) {
16
+ var useStyle = genComponentStyleHook('Form', function (token) {
17
+ return [genFormStyle(token)];
18
+ });
19
+ return useStyle(prefixCls);
20
+ });
package/es/index.d.ts CHANGED
@@ -56,6 +56,8 @@ export { default as Segmented } from './segmented';
56
56
  export type { SegmentedProps } from './segmented';
57
57
  export { default as Breadcrumb } from './breadcrumb';
58
58
  export type { BreadcrumbProps, BreadcrumbItemProps } from './breadcrumb';
59
+ export { default as Dropdown } from './dropdown';
60
+ export type { DropdownProps, DropdownButtonProps, DropdownButtonType } from './dropdown';
59
61
  export { default as Result } from './result';
60
62
  export type { ResultProps, ResultType, ResultStatusType } from './result';
61
63
  export { default as Spin } from './spin';
package/es/index.js CHANGED
@@ -29,6 +29,7 @@ export { default as Slider } from "./slider";
29
29
  export { default as Tooltip } from "./tooltip";
30
30
  export { default as Segmented } from "./segmented";
31
31
  export { default as Breadcrumb } from "./breadcrumb";
32
+ export { default as Dropdown } from "./dropdown";
32
33
  export { default as Result } from "./result";
33
34
  export { default as Spin } from "./spin";
34
35
  export { default as Badge } from "./badge";
@@ -1,7 +1,7 @@
1
1
  import type { ListProps } from 'antd/es/list';
2
2
  export * from 'antd/es/list';
3
3
  export * from 'antd/es/list/Item';
4
- declare function List<T>({ pagination, ...restProps }: ListProps<T>): import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
4
+ declare function List<T>({ pagination, ...restProps }: ListProps<T>): import("@emotion/react/jsx-runtime").JSX.Element;
5
5
  declare namespace List {
6
6
  var Item: import("antd/es/list/Item").ListItemTypeProps;
7
7
  var displayName: string;
@@ -6,5 +6,5 @@ export interface ModalProgressProps extends ModalProps {
6
6
  progress?: ProgressProps;
7
7
  description?: React.ReactNode;
8
8
  }
9
- declare const Progress: ({ prefixCls: customizePrefixCls, className, width, maskClosable, loading, progress, description, footer, ...restProps }: ModalProgressProps) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
9
+ declare const Progress: ({ prefixCls: customizePrefixCls, className, width, maskClosable, loading, progress, description, footer, ...restProps }: ModalProgressProps) => import("@emotion/react/jsx-runtime").JSX.Element;
10
10
  export default Progress;
package/es/result/404.js CHANGED
@@ -4,11 +4,17 @@ 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 { useUniqueInlineId } from '@inline-svg-unique-id/react';
7
8
  import React from 'react';
8
9
  import Icon from '@oceanbase/icons';
9
10
  import { jsx as _jsx } from "react/jsx-runtime";
10
11
  import { jsxs as _jsxs } from "react/jsx-runtime";
11
12
  var Svg404 = function Svg404() {
13
+ var _id5 = useUniqueInlineId();
14
+ var _id4 = useUniqueInlineId();
15
+ var _id3 = useUniqueInlineId();
16
+ var _id2 = useUniqueInlineId();
17
+ var _id = useUniqueInlineId();
12
18
  return /*#__PURE__*/_jsxs("svg", {
13
19
  width: "160px",
14
20
  height: "160px",
@@ -17,13 +23,13 @@ var Svg404 = function Svg404() {
17
23
  xmlns: "http://www.w3.org/2000/svg",
18
24
  children: [/*#__PURE__*/_jsxs("defs", {
19
25
  children: [/*#__PURE__*/_jsx("ellipse", {
20
- id: "path-1",
26
+ id: _id,
21
27
  cx: "34.818724",
22
28
  cy: "24.1269436",
23
29
  rx: "11.9125",
24
30
  ry: "32.8"
25
31
  }), /*#__PURE__*/_jsx("ellipse", {
26
- id: "path-3",
32
+ id: _id2,
27
33
  cx: "15.452048",
28
34
  cy: "9.8598182",
29
35
  rx: "4.1375",
@@ -87,9 +93,9 @@ var Svg404 = function Svg404() {
87
93
  rx: "11.9125",
88
94
  ry: "32.8"
89
95
  }), /*#__PURE__*/_jsxs("g", {
90
- id: "Clipped",
96
+ id: _id3,
91
97
  children: [/*#__PURE__*/_jsx("mask", {
92
- id: "oceanbase-design-result-404-mask-2",
98
+ id: _id4,
93
99
  fill: "white",
94
100
  children: /*#__PURE__*/_jsx("use", {
95
101
  transform: "translate(34.8187, 24.1269) rotate(-66.22) translate(-34.8187, -24.1269)"
@@ -100,7 +106,7 @@ var Svg404 = function Svg404() {
100
106
  d: "M64.4080716,38.11257 C61.1330716,43.25007 46.5955716,42.33757 30.0205716,35.03757 C13.4455716,27.73757 2.79557161,17.55007 4.54557161,11.72507 C6.29557161,5.90007003 22.3330716,7.56257003 38.9080716,14.86257 C55.4830716,22.16257 68.1330716,32.28757 64.4080716,38.11257 L64.4080716,38.11257 Z",
101
107
  fill: "#132039",
102
108
  fillRule: "nonzero",
103
- mask: "url(#oceanbase-design-result-404-mask-2)"
109
+ mask: "url(#".concat(_id4, ")")
104
110
  })]
105
111
  }), /*#__PURE__*/_jsx("ellipse", {
106
112
  fill: "#F2F2F2",
@@ -111,10 +117,10 @@ var Svg404 = function Svg404() {
111
117
  rx: "4.1375",
112
118
  ry: "15.0625"
113
119
  }), /*#__PURE__*/_jsxs("g", {
114
- id: "Clipped",
120
+ id: _id3,
115
121
  transform: "translate(17.0449, 18.1949)",
116
122
  children: [/*#__PURE__*/_jsx("mask", {
117
- id: "oceanbase-design-result-success-404-4",
123
+ id: _id5,
118
124
  fill: "white",
119
125
  children: /*#__PURE__*/_jsx("use", {
120
126
  transform: "translate(15.452, 9.8598) rotate(-66.22) translate(-15.452, -9.8598)"
@@ -124,7 +130,7 @@ var Svg404 = function Svg404() {
124
130
  }), /*#__PURE__*/_jsx("ellipse", {
125
131
  fill: "#132039",
126
132
  fillRule: "nonzero",
127
- mask: "url(#oceanbase-design-result-success-404-4)",
133
+ mask: "url(#".concat(_id5, ")"),
128
134
  transform: "translate(15.0168, 10.8584) rotate(-66.22) translate(-15.0168, -10.8584)",
129
135
  cx: "15.0167984",
130
136
  cy: "10.8583602",
package/es/result/500.js CHANGED
@@ -4,11 +4,14 @@ 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 { useUniqueInlineId } from '@inline-svg-unique-id/react';
7
8
  import React from 'react';
8
9
  import Icon from '@oceanbase/icons';
9
10
  import { jsx as _jsx } from "react/jsx-runtime";
10
11
  import { jsxs as _jsxs } from "react/jsx-runtime";
11
12
  var Svg500 = function Svg500() {
13
+ var _id2 = useUniqueInlineId();
14
+ var _id = useUniqueInlineId();
12
15
  return /*#__PURE__*/_jsxs("svg", {
13
16
  width: "160px",
14
17
  height: "160px",
@@ -17,7 +20,7 @@ var Svg500 = function Svg500() {
17
20
  xmlns: "http://www.w3.org/2000/svg",
18
21
  children: [/*#__PURE__*/_jsx("defs", {
19
22
  children: /*#__PURE__*/_jsx("rect", {
20
- id: "oceanbase-design-result-500-path-1",
23
+ id: _id,
21
24
  x: "23.4314575",
22
25
  y: "23.4314575",
23
26
  width: "113.137085",
@@ -55,16 +58,16 @@ var Svg500 = function Svg500() {
55
58
  }), /*#__PURE__*/_jsxs("g", {
56
59
  transform: "translate(0, 0)",
57
60
  children: [/*#__PURE__*/_jsx("mask", {
58
- id: "oceanbase-design-result-500-mask-2",
61
+ id: _id2,
59
62
  fill: "white",
60
63
  children: /*#__PURE__*/_jsx("use", {
61
- xlinkHref: "#oceanbase-design-result-500-path-1",
64
+ xlinkHref: "#".concat(_id),
62
65
  transform: "translate(80, 80) rotate(-45) translate(-80, -80)"
63
66
  })
64
67
  }), /*#__PURE__*/_jsx("g", {
65
68
  transform: "translate(80, 80) rotate(-45) translate(-80, -80)"
66
69
  }), /*#__PURE__*/_jsx("g", {
67
- mask: "url(#oceanbase-design-result-500-mask-2)",
70
+ mask: "url(#".concat(_id2, ")"),
68
71
  children: /*#__PURE__*/_jsxs("g", {
69
72
  transform: "translate(18.166, 42.1381)",
70
73
  children: [/*#__PURE__*/_jsx("path", {
@@ -4,11 +4,15 @@ 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 { useUniqueInlineId } from '@inline-svg-unique-id/react';
7
8
  import React from 'react';
8
9
  import Icon from '@oceanbase/icons';
9
10
  import { jsx as _jsx } from "react/jsx-runtime";
10
11
  import { jsxs as _jsxs } from "react/jsx-runtime";
11
12
  var ErrorSvg = function ErrorSvg() {
13
+ var _id3 = useUniqueInlineId();
14
+ var _id2 = useUniqueInlineId();
15
+ var _id = useUniqueInlineId();
12
16
  return /*#__PURE__*/_jsxs("svg", {
13
17
  width: "160px",
14
18
  height: "160px",
@@ -17,7 +21,7 @@ var ErrorSvg = function ErrorSvg() {
17
21
  children: [/*#__PURE__*/_jsx("defs", {
18
22
  children: /*#__PURE__*/_jsx("path", {
19
23
  d: "M33.1125,0.0125 L100.6125,0.0125 C118.8875,0.0125 133.725,14.85 133.725,33.125 L133.725,118.1 L33.1125,118.1 C14.8375,118.1 0,103.2625 0,84.9875 L0,33.1125 C0,14.8375 14.8375,0 33.1125,0 L33.1125,0.0125 Z",
20
- id: "oceanbase-design-result-error-path-1"
24
+ id: _id
21
25
  })
22
26
  }), /*#__PURE__*/_jsx("g", {
23
27
  stroke: "none",
@@ -51,16 +55,16 @@ var ErrorSvg = function ErrorSvg() {
51
55
  rx: "0.9375"
52
56
  })]
53
57
  }), /*#__PURE__*/_jsxs("g", {
54
- id: "Clipped",
58
+ id: _id2,
55
59
  transform: "translate(14.9125, 13.75)",
56
60
  children: [/*#__PURE__*/_jsx("mask", {
57
- id: "oceanbase-design-result-error-mask-2",
61
+ id: _id3,
58
62
  fill: "white",
59
63
  children: /*#__PURE__*/_jsx("use", {
60
- href: "#oceanbase-design-result-error-path-1"
64
+ href: "#".concat(_id)
61
65
  })
62
66
  }), /*#__PURE__*/_jsx("g", {}), /*#__PURE__*/_jsx("g", {
63
- mask: "url(#oceanbase-design-result-error-mask-2)",
67
+ mask: "url(#".concat(_id3, ")"),
64
68
  children: /*#__PURE__*/_jsxs("g", {
65
69
  transform: "translate(10.4625, 25.15)",
66
70
  children: [/*#__PURE__*/_jsx("path", {
@@ -4,11 +4,15 @@ 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 { useUniqueInlineId } from '@inline-svg-unique-id/react';
7
8
  import React from 'react';
8
9
  import Icon from '@oceanbase/icons';
9
10
  import { jsx as _jsx } from "react/jsx-runtime";
10
11
  import { jsxs as _jsxs } from "react/jsx-runtime";
11
12
  var ProcessingSvg = function ProcessingSvg() {
13
+ var _id3 = useUniqueInlineId();
14
+ var _id2 = useUniqueInlineId();
15
+ var _id = useUniqueInlineId();
12
16
  return /*#__PURE__*/_jsxs("svg", {
13
17
  width: "160px",
14
18
  height: "160px",
@@ -18,7 +22,7 @@ var ProcessingSvg = function ProcessingSvg() {
18
22
  children: [/*#__PURE__*/_jsx("defs", {
19
23
  children: /*#__PURE__*/_jsx("path", {
20
24
  d: "M33.1125,0.0125 L100.6125,0.0125 C118.8875,0.0125 133.725,14.85 133.725,33.125 L133.725,118.1 L33.1125,118.1 C14.8375,118.1 4.4408921e-15,103.2625 4.4408921e-15,84.9875 L4.4408921e-15,33.1125 C4.4408921e-15,14.8375 14.8375,0 33.1125,0 L33.1125,0.0125 Z",
21
- id: "oceanbase-design-result-processing-path-1"
25
+ id: _id
22
26
  })
23
27
  }), /*#__PURE__*/_jsx("g", {
24
28
  stroke: "none",
@@ -132,16 +136,16 @@ var ProcessingSvg = function ProcessingSvg() {
132
136
  points: "4.225 32.1125 5.9875 51.8875 37.8375 51.8875 39.5875 32.1125"
133
137
  })]
134
138
  }), /*#__PURE__*/_jsxs("g", {
135
- id: "Clipped",
139
+ id: _id2,
136
140
  transform: "translate(14.9125, 13.75)",
137
141
  children: [/*#__PURE__*/_jsx("mask", {
138
- id: "oceanbase-design-result-processing-mask-2",
142
+ id: _id3,
139
143
  fill: "white",
140
144
  children: /*#__PURE__*/_jsx("use", {
141
- href: "#oceanbase-design-result-processing-path-1"
145
+ href: "#".concat(_id)
142
146
  })
143
147
  }), /*#__PURE__*/_jsx("g", {}), /*#__PURE__*/_jsx("g", {
144
- mask: "url(#oceanbase-design-result-processing-mask-2)",
148
+ mask: "url(#".concat(_id3, ")"),
145
149
  children: /*#__PURE__*/_jsxs("g", {
146
150
  transform: "translate(31.5625, 35.9375)",
147
151
  children: [/*#__PURE__*/_jsx("rect", {
@@ -4,11 +4,26 @@ 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 { useUniqueInlineId } from '@inline-svg-unique-id/react';
7
8
  import React from 'react';
8
9
  import Icon from '@oceanbase/icons';
9
10
  import { jsx as _jsx } from "react/jsx-runtime";
10
11
  import { jsxs as _jsxs } from "react/jsx-runtime";
11
12
  var SuccessSvg = function SuccessSvg() {
13
+ var _id14 = useUniqueInlineId();
14
+ var _id13 = useUniqueInlineId();
15
+ var _id12 = useUniqueInlineId();
16
+ var _id11 = useUniqueInlineId();
17
+ var _id10 = useUniqueInlineId();
18
+ var _id9 = useUniqueInlineId();
19
+ var _id8 = useUniqueInlineId();
20
+ var _id7 = useUniqueInlineId();
21
+ var _id6 = useUniqueInlineId();
22
+ var _id5 = useUniqueInlineId();
23
+ var _id4 = useUniqueInlineId();
24
+ var _id3 = useUniqueInlineId();
25
+ var _id2 = useUniqueInlineId();
26
+ var _id = useUniqueInlineId();
12
27
  return /*#__PURE__*/_jsxs("svg", {
13
28
  width: "160px",
14
29
  height: "160px",
@@ -17,19 +32,19 @@ var SuccessSvg = function SuccessSvg() {
17
32
  children: [/*#__PURE__*/_jsxs("defs", {
18
33
  children: [/*#__PURE__*/_jsx("path", {
19
34
  d: "M33.125,0 L100.625,0 C118.875,0 133.75,14.875 133.75,33.125 L133.75,118.125 L33.125,118.125 C14.875,118.125 0,103.25 0,85 L0,33.125 C0,14.875 14.875,0 33.125,0 Z",
20
- id: "oceanbase-design-result-success-path-1"
35
+ id: _id
21
36
  }), /*#__PURE__*/_jsx("path", {
22
37
  d: "M1.43012646,5.5292612 L17.6801265,0.154261199 C19.1801265,-0.345738801 20.8051265,0.404261199 21.1801265,1.9042612 L21.9301265,4.1542612 C22.3051265,5.2792612 21.6801265,6.5292612 20.5551265,6.9042612 L3.80512646,12.5292612 C2.68012646,12.9042612 1.43012646,12.2792612 1.05512646,11.1542612 L0.0551264646,8.2792612 C-0.194873535,7.1542612 0.430126465,5.9042612 1.43012646,5.5292612 L1.43012646,5.5292612 Z",
23
- id: "oceanbase-design-result-success-path-3"
38
+ id: _id2
24
39
  }), /*#__PURE__*/_jsx("path", {
25
40
  d: "M1.89214041,4.7792612 L15.8921404,0.154261199 C17.3921404,-0.345738801 18.8921404,0.404261199 19.3921404,1.9042612 L20.2671404,4.4042612 C20.7671404,5.9042612 20.0171404,7.4042612 18.5171404,7.9042612 L4.51714041,12.5292612 C3.01714041,13.0292612 1.51714041,12.2792612 1.01714041,10.7792612 L0.142140412,8.2792612 C-0.357859588,6.9042612 0.517140412,5.2792612 1.89214041,4.7792612 Z",
26
- id: "oceanbase-design-result-success-path-5"
41
+ id: _id3
27
42
  }), /*#__PURE__*/_jsx("path", {
28
43
  d: "M2.02814371,4.73308102 L15.9031437,0.108081022 C17.1531437,-0.266918978 18.5281437,0.358081022 19.0281437,1.60808102 L20.0281437,4.60808102 C20.4031437,5.85808102 19.7781437,7.23308102 18.5281437,7.73308102 L4.65314371,12.358081 C3.02814371,12.858081 1.27814371,11.983081 0.778143715,10.483081 L0.153143715,8.60808102 C-0.346856285,6.98308102 0.403143715,5.23308102 2.02814371,4.73308102 Z",
29
- id: "oceanbase-design-result-success-path-7"
44
+ id: _id4
30
45
  }), /*#__PURE__*/_jsx("path", {
31
46
  d: "M2.08661279,3.86102208 L13.2116128,0.111022078 C14.0866128,-0.263977922 15.0866128,0.361022078 15.4616128,1.23602208 L16.4616128,4.36102208 C16.9616128,5.73602208 16.2116128,7.36102208 14.7116128,7.73602208 L4.46161279,11.1110221 C2.96161279,11.6110221 1.21161279,10.7360221 0.711612789,9.23602208 L0.0866127887,7.48602208 C-0.288387211,5.98602208 0.586612789,4.36102208 2.08661279,3.86102208 Z",
32
- id: "oceanbase-design-result-success-path-9"
47
+ id: _id5
33
48
  })]
34
49
  }), /*#__PURE__*/_jsx("g", {
35
50
  stroke: "none",
@@ -41,13 +56,13 @@ var SuccessSvg = function SuccessSvg() {
41
56
  fill: "#0181FD"
42
57
  }), /*#__PURE__*/_jsxs("g", {
43
58
  children: [/*#__PURE__*/_jsx("mask", {
44
- id: "oceanbase-design-result-success-mask-2",
59
+ id: _id6,
45
60
  fill: "white",
46
61
  children: /*#__PURE__*/_jsx("use", {
47
- href: "#oceanbase-design-result-success-path-1"
62
+ href: "#".concat(_id)
48
63
  })
49
64
  }), /*#__PURE__*/_jsx("g", {}), /*#__PURE__*/_jsx("g", {
50
- mask: "url(#oceanbase-design-result-success-mask-2)",
65
+ mask: "url(#".concat(_id6, ")"),
51
66
  children: /*#__PURE__*/_jsxs("g", {
52
67
  transform: "translate(-8.125, 9.25)",
53
68
  children: [/*#__PURE__*/_jsx("path", {
@@ -96,17 +111,17 @@ var SuccessSvg = function SuccessSvg() {
96
111
  }), /*#__PURE__*/_jsxs("g", {
97
112
  transform: "translate(39.5699, 47.5344)",
98
113
  children: [/*#__PURE__*/_jsx("mask", {
99
- id: "oceanbase-design-result-success-mask-4",
114
+ id: _id7,
100
115
  fill: "white",
101
116
  children: /*#__PURE__*/_jsx("use", {
102
- href: "#oceanbase-design-result-success-path-3"
117
+ href: "#".concat(_id2)
103
118
  })
104
119
  }), /*#__PURE__*/_jsx("g", {
105
- id: "SVGID_00000136373575218028105800000015833068694952139445_"
120
+ id: _id8
106
121
  }), /*#__PURE__*/_jsx("path", {
107
122
  d: "M0.555126465,5.7792612 L11.8051265,2.0292612 C12.8051265,1.6542612 13.9301265,2.2792612 14.3051265,3.2792612 L15.5551265,7.0292612 C15.8051265,7.7792612 15.4301265,8.6542612 14.6801265,8.9042612 L2.93012646,12.7792612 C2.18012646,13.0292612 1.30512646,12.6542612 1.05512646,11.9042612 L-0.319873535,7.6542612 C-0.569873535,6.9042612 -0.194873535,6.0292612 0.555126465,5.7792612 Z",
108
123
  fill: "#D8D8D8",
109
- mask: "url(#oceanbase-design-result-success-mask-4)"
124
+ mask: "url(#".concat(_id7, ")")
110
125
  })]
111
126
  }), /*#__PURE__*/_jsx("path", {
112
127
  d: "M47.25,58.6887085 L61.25,54.0637085 C62.75,53.5637085 64.25,54.3137085 64.75,55.8137085 L65.625,58.3137085 C66.125,59.8137085 65.375,61.3137085 63.875,61.8137085 L49.875,66.4387085 C48.375,66.9387085 46.875,66.1887085 46.375,64.6887085 L45.5,62.1887085 C45,60.8137085 45.875,59.1887085 47.25,58.6887085 Z",
@@ -114,17 +129,17 @@ var SuccessSvg = function SuccessSvg() {
114
129
  }), /*#__PURE__*/_jsxs("g", {
115
130
  transform: "translate(45.3579, 53.9094)",
116
131
  children: [/*#__PURE__*/_jsx("mask", {
117
- id: "oceanbase-design-result-success-mask-6",
132
+ id: _id9,
118
133
  fill: "white",
119
134
  children: /*#__PURE__*/_jsx("use", {
120
- href: "#oceanbase-design-result-success-path-5"
135
+ href: "#".concat(_id3)
121
136
  })
122
137
  }), /*#__PURE__*/_jsx("g", {
123
- id: "SVGID_00000072260953934706606590000017879755367803290522_"
138
+ id: _id10
124
139
  }), /*#__PURE__*/_jsx("path", {
125
140
  d: "M-6.73285959,7.5292612 L8.76714041,2.4042612 C9.76714041,2.0292612 10.8921404,2.6542612 11.2671404,3.6542612 L12.6421404,7.7792612 C13.0171404,8.7792612 12.3921404,9.9042612 11.3921404,10.2792612 L-4.23285959,15.5292612 C-5.23285959,15.9042612 -6.35785959,15.2792612 -6.73285959,14.2792612 L-8.10785959,10.1542612 C-8.35785959,9.0292612 -7.73285959,7.9042612 -6.73285959,7.5292612 Z",
126
141
  fill: "#D8D8D8",
127
- mask: "url(#oceanbase-design-result-success-mask-6)"
142
+ mask: "url(#".concat(_id9, ")")
128
143
  })]
129
144
  }), /*#__PURE__*/_jsx("path", {
130
145
  d: "M49.25,66.5637085 L63.125,61.9387085 C64.375,61.5637085 65.75,62.1887085 66.25,63.4387085 L67.25,66.4387085 C67.625,67.6887085 67,69.0637085 65.75,69.5637085 L51.875,74.1887085 C50.25,74.6887085 48.5,73.8137085 48,72.3137085 L47.375,70.4387085 C46.875,68.8137085 47.625,67.0637085 49.25,66.5637085 Z",
@@ -132,17 +147,17 @@ var SuccessSvg = function SuccessSvg() {
132
147
  }), /*#__PURE__*/_jsxs("g", {
133
148
  transform: "translate(47.2219, 61.8306)",
134
149
  children: [/*#__PURE__*/_jsx("mask", {
135
- id: "oceanbase-design-result-success-mask-8",
150
+ id: _id11,
136
151
  fill: "white",
137
152
  children: /*#__PURE__*/_jsx("use", {
138
- href: "#oceanbase-design-result-success-path-7"
153
+ href: "#".concat(_id4)
139
154
  })
140
155
  }), /*#__PURE__*/_jsx("g", {
141
- id: "SVGID_00000019653314099838397220000000586077130363906990_"
156
+ id: _id12
142
157
  }), /*#__PURE__*/_jsx("path", {
143
158
  d: "M-5.09685629,7.10808102 L8.77814371,2.48308102 C10.0281437,2.10808102 11.4031437,2.73308102 11.9031437,3.98308102 L12.9031437,6.98308102 C13.2781437,8.23308102 12.6531437,9.60808102 11.4031437,10.108081 L-2.47185629,14.733081 C-4.09685629,15.233081 -5.84685629,14.358081 -6.34685629,12.858081 L-6.97185629,10.983081 C-7.59685629,9.35808102 -6.72185629,7.73308102 -5.09685629,7.10808102 Z",
144
159
  fill: "#D8D8D8",
145
- mask: "url(#oceanbase-design-result-success-mask-8)"
160
+ mask: "url(#".concat(_id11, ")")
146
161
  })]
147
162
  }), /*#__PURE__*/_jsx("polygon", {
148
163
  fill: "#132039",
@@ -153,17 +168,17 @@ var SuccessSvg = function SuccessSvg() {
153
168
  }), /*#__PURE__*/_jsxs("g", {
154
169
  transform: "translate(50.7884, 69.8277)",
155
170
  children: [/*#__PURE__*/_jsx("mask", {
156
- id: "oceanbase-design-result-success-mask-10",
171
+ id: _id13,
157
172
  fill: "white",
158
173
  children: /*#__PURE__*/_jsx("use", {
159
- href: "#oceanbase-design-result-success-path-9"
174
+ href: "#".concat(_id5)
160
175
  })
161
176
  }), /*#__PURE__*/_jsx("g", {
162
- id: "SVGID_00000091695442429382600100000003029485216806722220_"
177
+ id: _id14
163
178
  }), /*#__PURE__*/_jsx("path", {
164
179
  d: "M-3.66338721,5.73602208 L7.46161279,1.98602208 C8.33661279,1.61102208 9.33661279,2.23602208 9.71161279,3.11102208 L10.7116128,6.23602208 C11.2116128,7.61102208 10.4616128,9.23602208 8.96161279,9.61102208 L-1.28838721,12.9860221 C-2.78838721,13.4860221 -4.53838721,12.6110221 -5.03838721,11.1110221 L-5.53838721,9.48602208 C-6.16338721,7.86102208 -5.28838721,6.23602208 -3.66338721,5.73602208 Z",
165
180
  fill: "#D8D8D8",
166
- mask: "url(#oceanbase-design-result-success-mask-10)"
181
+ mask: "url(#".concat(_id13, ")")
167
182
  })]
168
183
  }), /*#__PURE__*/_jsx("path", {
169
184
  d: "M0,84.0637085 L29.25,69.5637085 C31.875,67.6887085 36.25,53.6887085 36.25,53.6887085 C36.625,52.0637085 37.875,50.6887085 39.5,50.3137085 L47.875,47.8137085 L46.625,58.3137085 L46.625,58.3137085 C47.25,63.5637085 47.75,71.3137085 40.875,75.8137085 C37.5,79.6887085 26.25,94.1887085 26.25,94.1887085 L11.375,98.1887085 L0,84.0637085 L0,84.0637085 Z",
@@ -4,11 +4,15 @@ 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 { useUniqueInlineId } from '@inline-svg-unique-id/react';
7
8
  import React from 'react';
8
9
  import Icon from '@oceanbase/icons';
9
10
  import { jsx as _jsx } from "react/jsx-runtime";
10
11
  import { jsxs as _jsxs } from "react/jsx-runtime";
11
12
  var WarningSvg = function WarningSvg() {
13
+ var _id3 = useUniqueInlineId();
14
+ var _id2 = useUniqueInlineId();
15
+ var _id = useUniqueInlineId();
12
16
  return /*#__PURE__*/_jsxs("svg", {
13
17
  width: "160px",
14
18
  height: "160px",
@@ -18,7 +22,7 @@ var WarningSvg = function WarningSvg() {
18
22
  children: [/*#__PURE__*/_jsx("defs", {
19
23
  children: /*#__PURE__*/_jsx("path", {
20
24
  d: "M33.1125,0 L100.6125,0 C118.8875,0 133.725,14.8375 133.725,33.1125 L133.725,118.0875 L33.1125,118.0875 C14.8375,118.0875 -4.4408921e-15,103.25 -4.4408921e-15,84.975 L-4.4408921e-15,33.1125 C-4.4408921e-15,14.8375 14.8375,0 33.1125,0 Z",
21
- id: "oceanbase-design-result-warning-path-1"
25
+ id: _id
22
26
  })
23
27
  }), /*#__PURE__*/_jsx("g", {
24
28
  stroke: "none",
@@ -32,16 +36,16 @@ var WarningSvg = function WarningSvg() {
32
36
  fill: "#0181FD",
33
37
  fillRule: "nonzero"
34
38
  }), /*#__PURE__*/_jsxs("g", {
35
- id: "Clipped",
39
+ id: _id2,
36
40
  transform: "translate(14.9125, 13.75)",
37
41
  children: [/*#__PURE__*/_jsx("mask", {
38
- id: "oceanbase-design-result-warning-mask-2",
42
+ id: _id3,
39
43
  fill: "white",
40
44
  children: /*#__PURE__*/_jsx("use", {
41
- href: "#oceanbase-design-result-warning-path-1"
45
+ href: "#".concat(_id)
42
46
  })
43
47
  }), /*#__PURE__*/_jsx("g", {}), /*#__PURE__*/_jsx("g", {
44
- mask: "url(#oceanbase-design-result-warning-mask-2)",
48
+ mask: "url(#".concat(_id3, ")"),
45
49
  children: /*#__PURE__*/_jsxs("g", {
46
50
  transform: "translate(-13.25, 47.0625)",
47
51
  children: [/*#__PURE__*/_jsx("path", {