@agentscope-ai/design 1.0.23 → 1.0.24-beta.1767669321337

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.
@@ -1,7 +1,9 @@
1
1
  var _templateObject;
2
2
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
3
3
  import createGlobalStyle from "../../libs/createStyle";
4
- export var useButtonStyle = createGlobalStyle(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n/* \u53D6\u6D88\u6240\u6709button\u7684boxShadow */\nbutton[type=\"button\"].", "-btn {\n font-weight: 500;\n padding-inline: 11px;\n \n span[data-spark-icon] {\n /* @agentscope-ai/icons\u7684\u7279\u6B8A\u903B\u8F91 */\n font-size: 20px;\n }\n \n &.", "-btn-sm {\n padding-inline: 7px;\n \n span[data-spark-icon] {\n /* @agentscope-ai/icons\u7684\u7279\u6B8A\u903B\u8F91 */\n font-size: 16px;\n }\n }\n \n &.", "-btn-lg {\n span[data-spark-icon] {\n /* @agentscope-ai/icons\u7684\u7279\u6B8A\u903B\u8F91 */\n font-size: 24px;\n }\n }\n}\n\n.", "-btn-default {\n border-color: var(--", "-color-border-secondary);\n}\n\n.", "-btn-textCompact:hover {\n color: var(--", "-color-text-tertiary) !important;\n}\n\n.", "-btn.", "-btn-default.", "-btn-dangerous:not(:disabled):not(.", "-btn-disabled) {\n border-color: transparent;\n background-color: var(--", "-color-error-bg);\n color: var(--", "-color-error);\n \n &:hover {\n background-color: var(--", "-color-error-bg-hover);\n border-color: transparent;\n color: var(--", "-color-error-hover);\n }\n}\n\n.", "-btn-color-dangerous.", "-btn-variant-solid:disabled,\n.", "-btn-color-dangerous.", "-btn-variant-solid.", "-btn-disabled {\n border-color: transparent;\n background-color: var(--", "-color-fill-disable);\n color: var(--", "-color-text-white);\n}\n\n.", "-btn-primary {\n color: var(--", "-color-text-on-primary);\n}\n.", "-btn-primary.", "-btn-variant-solid:not(:disabled):not(.", "-btn-disabled):hover {\n color: var(--", "-color-text-on-primary);\n}\n\n.", "-btn-primary:disabled {\n background: var(--", "-color-fill-disable);\n color: var(--", "-color-text-white);\n border-color: transparent;\n}\n\n.", "-btn-default:disabled {\n background: var(--", "-color-bg-base);\n color: var(--", "-color-text-tertiary);\n border-color: var(--", "-color-border-secondary);\n}\n\n/* Keep white text color for primaryLess buttons */\n.spark-button-primaryLess.", "-btn-primary {\n color: var(--", "-color-text-white);\n}\n.spark-button-primaryLess.", "-btn-primary.", "-btn-variant-solid:not(:disabled):not(.", "-btn-disabled):hover {\n color: var(--", "-color-text-white);\n}\n"])), function (p) {
4
+ export var useButtonStyle = createGlobalStyle(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n/* \u53D6\u6D88\u6240\u6709button\u7684boxShadow */\nbutton[type=\"button\"].", "-btn {\n font-weight: 500;\n padding-inline: 11px;\n \n span[data-spark-icon] {\n /* @agentscope-ai/icons\u7684\u7279\u6B8A\u903B\u8F91 */\n font-size: 20px;\n }\n \n &.", "-btn-sm {\n padding-inline: 7px;\n \n span[data-spark-icon] {\n /* @agentscope-ai/icons\u7684\u7279\u6B8A\u903B\u8F91 */\n font-size: 16px;\n }\n }\n \n &.", "-btn-lg {\n span[data-spark-icon] {\n /* @agentscope-ai/icons\u7684\u7279\u6B8A\u903B\u8F91 */\n font-size: 24px;\n }\n }\n}\n\n.", "-btn-default {\n border-color: var(--", "-color-border-secondary);\n}\n\n.", "-btn-textCompact:hover {\n color: var(--", "-color-text-tertiary) !important;\n}\n\n.", "-btn.", "-btn-default.", "-btn-dangerous:not(:disabled):not(.", "-btn-disabled) {\n border-color: transparent;\n background-color: var(--", "-color-error-bg);\n color: var(--", "-color-error);\n \n &:hover {\n background-color: var(--", "-color-error-bg-hover);\n border-color: transparent;\n color: var(--", "-color-error-hover);\n }\n}\n\n.", "-btn-color-dangerous.", "-btn-variant-solid:disabled,\n.", "-btn-color-dangerous.", "-btn-variant-solid.", "-btn-disabled {\n border-color: transparent;\n background-color: var(--", "-color-fill-disable);\n color: var(--", "-color-text-white);\n}\n\n.", "-btn-primary {\n color: var(--", "-color-text-on-primary);\n}\n.", "-btn-primary.", "-btn-variant-solid:not(:disabled):not(.", "-btn-background-ghost):not(.", "-btn-disabled):hover {\n color: var(--", "-color-text-on-primary);\n}\n\n.", "-btn-primary:disabled {\n background: var(--", "-color-fill-disable);\n color: var(--", "-color-text-white);\n border-color: transparent;\n}\n\n.", "-btn-default:disabled {\n background: var(--", "-color-bg-base);\n color: var(--", "-color-text-tertiary);\n border-color: var(--", "-color-border-secondary);\n}\n\n/* Keep white text color for primaryLess buttons */\n.spark-button-primaryLess.", "-btn-primary {\n color: var(--", "-color-text-white);\n}\n.spark-button-primaryLess.", "-btn-primary.", "-btn-variant-solid:not(:disabled):not(.", "-btn-disabled):hover {\n color: var(--", "-color-text-white);\n}\n"])), function (p) {
5
+ return p.antPrefix;
6
+ }, function (p) {
5
7
  return p.antPrefix;
6
8
  }, function (p) {
7
9
  return p.antPrefix;
@@ -29,7 +29,13 @@ var SparkAvatar = /*#__PURE__*/forwardRef(function (props, ref) {
29
29
  setModifiedChildren = _useState2[1];
30
30
  useEffect(function () {
31
31
  if (typeof children === 'string') {
32
- setModifiedChildren(children.slice(0, 1));
32
+ // 使用 Array.from 来正确处理 emoji 等多字节字符
33
+ setModifiedChildren(Array.from(children)[0]);
34
+ return;
35
+ }
36
+ if (typeof children === 'number') {
37
+ // 数字类型转换为字符串后截取第一个字符
38
+ setModifiedChildren(Array.from(String(children))[0]);
33
39
  return;
34
40
  }
35
41
  setModifiedChildren(children);
@@ -20,6 +20,10 @@ export default (function () {
20
20
  }), /*#__PURE__*/_jsx(Button, {
21
21
  type: "primaryLess",
22
22
  children: "PrimaryLess"
23
+ }), /*#__PURE__*/_jsx(Button, {
24
+ type: "primary",
25
+ ghost: true,
26
+ children: "Ghost"
23
27
  })]
24
28
  }), /*#__PURE__*/_jsxs(Flex, {
25
29
  gap: 16,
@@ -1,4 +1,4 @@
1
- var _excluded = ["iconSize", "loading"];
1
+ var _excluded = ["iconSize", "loading", "iconType", "tooltipContent"];
2
2
  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; }
3
3
  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; }
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; }
@@ -20,6 +20,8 @@ var Button = /*#__PURE__*/forwardRef(function (props, ref) {
20
20
  var token = theme.useToken();
21
21
  var iconSize = props.iconSize,
22
22
  loading = props.loading,
23
+ iconType = props.iconType,
24
+ tooltipContent = props.tooltipContent,
23
25
  restProps = _objectWithoutProperties(props, _excluded);
24
26
  var buttonType = React.useMemo(function () {
25
27
  // @ts-ignore
@@ -52,15 +54,15 @@ var Button = /*#__PURE__*/forwardRef(function (props, ref) {
52
54
  if (loading && _typeof(loading) === 'object' && loading.icon) {
53
55
  return loading === null || loading === void 0 ? void 0 : loading.icon;
54
56
  }
55
- if (restProps.iconType) return /*#__PURE__*/_jsx(IconFont, {
56
- type: restProps.iconType,
57
+ if (iconType) return /*#__PURE__*/_jsx(IconFont, {
58
+ type: iconType,
57
59
  size: iconSize !== null && iconSize !== void 0 ? iconSize : restProps.size
58
60
  }); // 注意 size 也需要传入下去
59
61
  if (restProps.icon) return /*#__PURE__*/React.cloneElement(restProps.icon, {
60
62
  size: iconSize !== null && iconSize !== void 0 ? iconSize : restProps.size // 注意 size 也需要传入下去
61
63
  });
62
64
  return null;
63
- }, [restProps.iconType, restProps.icon]);
65
+ }, [iconType, restProps.icon]);
64
66
  var button = /*#__PURE__*/_jsx(AntdButton, _objectSpread(_objectSpread({}, restProps), {}, {
65
67
  loading: mergedLoading,
66
68
  ref: ref,
@@ -89,14 +91,14 @@ var Button = /*#__PURE__*/forwardRef(function (props, ref) {
89
91
  }
90
92
  },
91
93
  children: /*#__PURE__*/_jsx(Tooltip, {
92
- title: restProps.tooltipContent,
94
+ title: tooltipContent,
93
95
  children: button
94
96
  })
95
97
  });
96
98
  // @ts-ignore
97
99
  } else if (restProps.type === 'textCompact') {
98
100
  return /*#__PURE__*/_jsx(Tooltip, {
99
- title: restProps.tooltipContent,
101
+ title: tooltipContent,
100
102
  children: /*#__PURE__*/_jsx(AntdButton, _objectSpread(_objectSpread({}, restProps), {}, {
101
103
  ref: ref,
102
104
  icon: icon,
@@ -113,7 +115,7 @@ var Button = /*#__PURE__*/forwardRef(function (props, ref) {
113
115
  });
114
116
  } else {
115
117
  return /*#__PURE__*/_jsx(Tooltip, {
116
- title: restProps.tooltipContent,
118
+ title: tooltipContent,
117
119
  children: button
118
120
  });
119
121
  }
@@ -8,7 +8,7 @@ export interface CodeBlockProps {
8
8
  * @description 值
9
9
  * @descriptionEn Value
10
10
  */
11
- value: string;
11
+ value?: string;
12
12
  /**
13
13
  * @description 类名
14
14
  * @descriptionEn Class name
@@ -23,7 +23,7 @@ export interface CodeBlockProps {
23
23
  * @descriptionEn Read only
24
24
  */
25
25
  readOnly?: boolean;
26
- onChange?: (value: string) => void;
26
+ onChange?: (value?: string) => void;
27
27
  }
28
28
  export declare const langExtensionsMap: Record<string, any[]>;
29
29
  export declare const beautifulJson: (val?: string, count?: number) => string;
@@ -85,7 +85,7 @@ var CodeMirrorWrapper = function CodeMirrorWrapper(props) {
85
85
  className: cls("".concat(sparkPrefix, "-code-block"), props.className),
86
86
  children: /*#__PURE__*/_jsx(CodeMirror, _objectSpread({
87
87
  extensions: extensions,
88
- value: props.language === 'json' ? beautifulJson(props.value) : props.value,
88
+ value: props.language === 'json' ? beautifulJson(props.value || '') : props.value || '',
89
89
  theme: getTheme
90
90
  }, omit(props, ['language', 'theme', 'extensions', 'value'])))
91
91
  });
@@ -1,12 +1,13 @@
1
- var _excluded = ["tooltip"];
1
+ var _excluded = ["labelMarginRight"],
2
+ _excluded2 = ["tooltip"];
2
3
  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); }
3
- function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
4
- 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; }
5
4
  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; }
6
5
  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; }
7
6
  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; }
8
7
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
9
8
  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); }
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
+ 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
11
  import { getCommonConfig } from "../../../config";
11
12
  import { InfoCircleOutlined } from "@agentscope-ai/icons-override-antd";
12
13
  import { Form } from 'antd';
@@ -19,7 +20,8 @@ import { Fragment as _Fragment } from "react/jsx-runtime";
19
20
  import { jsxs as _jsxs } from "react/jsx-runtime";
20
21
  var InternalForm = /*#__PURE__*/forwardRef(function (props, ref) {
21
22
  var _props$labelMarginRig = props.labelMarginRight,
22
- labelMarginRight = _props$labelMarginRig === void 0 ? undefined : _props$labelMarginRig;
23
+ labelMarginRight = _props$labelMarginRig === void 0 ? undefined : _props$labelMarginRig,
24
+ restProps = _objectWithoutProperties(props, _excluded);
23
25
  var formRef = useRef(null);
24
26
  var _getCommonConfig = getCommonConfig(),
25
27
  sparkPrefix = _getCommonConfig.sparkPrefix;
@@ -31,7 +33,7 @@ var InternalForm = /*#__PURE__*/forwardRef(function (props, ref) {
31
33
  children: [/*#__PURE__*/_jsx(Style, {}),
32
34
  /*#__PURE__*/
33
35
  //@ts-ignore
34
- _jsx(Form, _objectSpread(_objectSpread({}, props), {}, {
36
+ _jsx(Form, _objectSpread(_objectSpread({}, restProps), {}, {
35
37
  className: classnames(props.className, "".concat(sparkPrefix, "-form"), labelMarginRight === 'small' && "".concat(sparkPrefix, "-form-label-margin-small")),
36
38
  ref: formRef,
37
39
  requiredMark: function requiredMark(label, info) {
@@ -47,7 +49,7 @@ var InternalForm = /*#__PURE__*/forwardRef(function (props, ref) {
47
49
  });
48
50
  var InternalFormItem = function InternalFormItem(props) {
49
51
  var tooltip = props.tooltip,
50
- restProps = _objectWithoutProperties(props, _excluded);
52
+ restProps = _objectWithoutProperties(props, _excluded2);
51
53
  var defaultTooltipIcon = /*#__PURE__*/_jsx(InfoCircleOutlined, {});
52
54
  function getTooltip() {
53
55
  if (!tooltip) {
@@ -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 = ["className", "iconType", "bordered"];
2
+ var _excluded = ["className", "iconType", "bordered", "icon"];
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; }
@@ -20,6 +20,7 @@ export default (function (props) {
20
20
  iconType = props.iconType,
21
21
  _props$bordered = props.bordered,
22
22
  bordered = _props$bordered === void 0 ? true : _props$bordered,
23
+ iconProp = props.icon,
23
24
  restProps = _objectWithoutProperties(props, _excluded);
24
25
  var config = getCommonConfig();
25
26
  var iconfont = config.iconfont;
@@ -30,15 +31,15 @@ export default (function (props) {
30
31
  type: iconType,
31
32
  size: props.size
32
33
  });
33
- } else if (typeof props.icon === 'string') {
34
+ } else if (typeof iconProp === 'string') {
34
35
  return /*#__PURE__*/_jsx(IconFont, {
35
- type: props.icon,
36
+ type: iconProp,
36
37
  size: props.size
37
38
  });
38
39
  } else {
39
- return props.icon;
40
+ return iconProp;
40
41
  }
41
- }, [props.icon, iconType, iconfont]);
42
+ }, [iconProp, iconType, iconfont]);
42
43
  return /*#__PURE__*/_jsxs(_Fragment, {
43
44
  children: [/*#__PURE__*/_jsx(Style, {}), /*#__PURE__*/_jsx(Button, _objectSpread(_objectSpread({
44
45
  className: classNames(className, "".concat(config.sparkPrefix, "-icon-button")),
@@ -22,8 +22,8 @@ declare const _default: {
22
22
  error: (options: JointContent) => void;
23
23
  info: (options: JointContent) => void;
24
24
  loading: (options: JointContent) => void;
25
- open(args: MessageArgsProps): import("antd/es/message/interface").MessageType;
26
- destroy(key?: import("react").Key): void;
25
+ open: (args: MessageArgsProps) => import("antd/es/message/interface").MessageType;
26
+ destroy: (key?: import("react").Key) => void;
27
27
  }, import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>];
28
28
  open: (config: MessageArgsProps) => import("antd/es/message/interface").MessageType;
29
29
  destroy: (key?: import("react").Key) => void;
@@ -213,6 +213,7 @@ var Video = /*#__PURE__*/forwardRef(function (props, ref) {
213
213
  duration: duration,
214
214
  enableVolume: enableVolume,
215
215
  muted: muted,
216
+ enableFullscreen: true,
216
217
  onMute: function onMute() {
217
218
  return setMuted(!muted);
218
219
  },
@@ -18,23 +18,23 @@ declare const SparkMobileModal: {
18
18
  useModal: typeof import("antd/es/modal/useModal").default;
19
19
  success: (config: any) => {
20
20
  destroy: () => void;
21
- update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
21
+ update: (configUpdate: import("antd/es/modal/confirm").ConfigUpdate) => void;
22
22
  };
23
23
  error: (config: any) => {
24
24
  destroy: () => void;
25
- update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
25
+ update: (configUpdate: import("antd/es/modal/confirm").ConfigUpdate) => void;
26
26
  };
27
27
  warning: (config: any) => {
28
28
  destroy: () => void;
29
- update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
29
+ update: (configUpdate: import("antd/es/modal/confirm").ConfigUpdate) => void;
30
30
  };
31
31
  info: (config: any) => {
32
32
  destroy: () => void;
33
- update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
33
+ update: (configUpdate: import("antd/es/modal/confirm").ConfigUpdate) => void;
34
34
  };
35
35
  confirm: (config: any) => {
36
36
  destroy: () => void;
37
- update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
37
+ update: (configUpdate: import("antd/es/modal/confirm").ConfigUpdate) => void;
38
38
  };
39
39
  SMALL_WIDTH: number;
40
40
  MEDIUM_WIDTH: number;
@@ -4,9 +4,9 @@ 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 enUS from "./en-US.json";
8
- import zhCN from "./zh-CN.json";
9
- export default {
7
+ var enUS = require("./en-US.json");
8
+ var zhCN = require("./zh-CN.json");
9
+ module.exports = {
10
10
  'en-US': _objectSpread({}, enUS),
11
11
  'zh-CN': _objectSpread({}, zhCN)
12
12
  };