@sheinx/base 3.8.0-beta.21 → 3.8.0-beta.23

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 (71) hide show
  1. package/cjs/config/index.d.ts +23 -0
  2. package/cjs/config/index.d.ts.map +1 -1
  3. package/cjs/config/index.js +7 -0
  4. package/cjs/empty/empty.d.ts.map +1 -1
  5. package/cjs/empty/empty.js +10 -5
  6. package/cjs/empty/empty.type.d.ts +4 -4
  7. package/cjs/icons/config.d.ts +3 -0
  8. package/cjs/icons/config.d.ts.map +1 -1
  9. package/cjs/icons/config.js +3 -0
  10. package/cjs/icons/icons.d.ts +1 -0
  11. package/cjs/icons/icons.d.ts.map +1 -1
  12. package/cjs/icons/icons.js +150 -1
  13. package/cjs/modal/modal-content.js +2 -1
  14. package/cjs/popover/popover.d.ts.map +1 -1
  15. package/cjs/popover/popover.js +11 -2
  16. package/cjs/radio/group-context.d.ts.map +1 -1
  17. package/cjs/radio/group-context.js +1 -0
  18. package/cjs/radio/radio-group.d.ts.map +1 -1
  19. package/cjs/radio/radio-group.js +5 -1
  20. package/cjs/radio/simple-radio.d.ts.map +1 -1
  21. package/cjs/radio/simple-radio.js +2 -1
  22. package/cjs/select/select.type.d.ts +190 -127
  23. package/cjs/select/select.type.d.ts.map +1 -1
  24. package/cjs/table/table.d.ts.map +1 -1
  25. package/cjs/table/table.js +3 -1
  26. package/cjs/table/tbody.d.ts.map +1 -1
  27. package/cjs/table/tbody.js +13 -1
  28. package/cjs/table/tbody.type.d.ts +5 -0
  29. package/cjs/table/tbody.type.d.ts.map +1 -1
  30. package/cjs/table/tr.d.ts +1 -0
  31. package/cjs/table/tr.d.ts.map +1 -1
  32. package/cjs/table/tr.js +5 -4
  33. package/esm/config/index.d.ts +23 -0
  34. package/esm/config/index.d.ts.map +1 -1
  35. package/esm/config/index.js +8 -0
  36. package/esm/empty/empty.d.ts.map +1 -1
  37. package/esm/empty/empty.js +10 -5
  38. package/esm/empty/empty.type.d.ts +4 -4
  39. package/esm/icons/config.d.ts +3 -0
  40. package/esm/icons/config.d.ts.map +1 -1
  41. package/esm/icons/config.js +3 -0
  42. package/esm/icons/icons.d.ts +1 -0
  43. package/esm/icons/icons.d.ts.map +1 -1
  44. package/esm/icons/icons.js +150 -1
  45. package/esm/modal/modal-content.js +2 -1
  46. package/esm/popover/popover.d.ts.map +1 -1
  47. package/esm/popover/popover.js +11 -2
  48. package/esm/radio/group-context.d.ts.map +1 -1
  49. package/esm/radio/group-context.js +1 -0
  50. package/esm/radio/radio-group.d.ts.map +1 -1
  51. package/esm/radio/radio-group.js +5 -2
  52. package/esm/radio/simple-radio.d.ts.map +1 -1
  53. package/esm/radio/simple-radio.js +2 -1
  54. package/esm/select/select.type.d.ts +190 -127
  55. package/esm/select/select.type.d.ts.map +1 -1
  56. package/esm/table/table.d.ts.map +1 -1
  57. package/esm/table/table.js +3 -1
  58. package/esm/table/tbody.d.ts.map +1 -1
  59. package/esm/table/tbody.js +13 -1
  60. package/esm/table/tbody.type.d.ts +5 -0
  61. package/esm/table/tbody.type.d.ts.map +1 -1
  62. package/esm/table/tr.d.ts +1 -0
  63. package/esm/table/tr.d.ts.map +1 -1
  64. package/esm/table/tr.js +5 -4
  65. package/package.json +2 -2
  66. package/cjs/empty/empty-image.d.ts +0 -2
  67. package/cjs/empty/empty-image.d.ts.map +0 -1
  68. package/cjs/empty/empty-image.js +0 -157
  69. package/esm/empty/empty-image.d.ts +0 -2
  70. package/esm/empty/empty-image.d.ts.map +0 -1
  71. package/esm/empty/empty-image.js +0 -152
@@ -11,6 +11,23 @@ export type SpinConfig = SpinNameType | {
11
11
  type TooltipConfig = {
12
12
  persistent?: boolean;
13
13
  };
14
+ /**
15
+ * @en Global configuration for Empty component
16
+ * @cn Empty组件的全局配置
17
+ * @version 3.8.0
18
+ */
19
+ type EmptyConfig = {
20
+ /**
21
+ * @en Global default icon for Empty component
22
+ * @cn Empty组件的全局默认图标
23
+ */
24
+ icon?: React.ReactNode;
25
+ /**
26
+ * @en Global default description for Empty component
27
+ * @cn Empty组件的全局默认描述
28
+ */
29
+ description?: React.ReactNode | boolean;
30
+ };
14
31
  export interface ConfigOption {
15
32
  prefix: string;
16
33
  locale: LanType;
@@ -18,6 +35,12 @@ export interface ConfigOption {
18
35
  trim?: boolean;
19
36
  spin?: SpinConfig;
20
37
  tooltip?: TooltipConfig;
38
+ /**
39
+ * @en Global configuration for Empty component
40
+ * @cn Empty组件的全局配置
41
+ * @version 3.8.0
42
+ */
43
+ empty?: EmptyConfig;
21
44
  direction: Direction;
22
45
  popupContainer?: HTMLElement | null | (() => HTMLElement | null);
23
46
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";AAGA,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEjD,MAAM,MAAM,UAAU,GAClB,YAAY,GACZ;IACE,IAAI,EAAE,YAAY,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,GAAG,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACtB,IAAI,CAAC,EAAE,UAAU,GAAG,YAAY,CAAC;IACjC,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEN,KAAK,aAAa,GAAG;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAA;AAED,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,OAAO,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,SAAS,EAAE,SAAS,CAAC;IACrB,cAAc,CAAC,EAAE,WAAW,GAAG,IAAI,GAAG,CAAC,MAAM,WAAW,GAAG,IAAI,CAAC,CAAC;CAClE;AAGD,eAAO,IAAI,MAAM,EAAE,YASlB,CAAC;AAQF,wBAAgB,mBAAmB,uBAWlC;AAED,eAAO,MAAM,SAAS,oBAErB,CAAC;AAEF,eAAO,MAAM,SAAS,WAAY,QAAQ,YAAY,CAAC,SAQtD,CAAC;AAEF,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";AAGA,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEjD,MAAM,MAAM,UAAU,GAClB,YAAY,GACZ;IACE,IAAI,EAAE,YAAY,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,GAAG,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACtB,IAAI,CAAC,EAAE,UAAU,GAAG,YAAY,CAAC;IACjC,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEN,KAAK,aAAa,GAAG;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAA;AAED;;;;GAIG;AACH,KAAK,WAAW,GAAG;IACjB;;;OAGG;IACH,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB;;;OAGG;IACH,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,OAAO,CAAC;CACzC,CAAA;AAED,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,OAAO,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB;;;;OAIG;IACH,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,SAAS,EAAE,SAAS,CAAC;IACrB,cAAc,CAAC,EAAE,WAAW,GAAG,IAAI,GAAG,CAAC,MAAM,WAAW,GAAG,IAAI,CAAC,CAAC;CAClE;AAGD,eAAO,IAAI,MAAM,EAAE,YAUlB,CAAC;AAQF,wBAAgB,mBAAmB,uBAWlC;AAED,eAAO,MAAM,SAAS,oBAErB,CAAC;AAEF,eAAO,MAAM,SAAS,WAAY,QAAQ,YAAY,CAAC,SAQtD,CAAC;AAEF,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC"}
@@ -31,6 +31,12 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
31
31
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
32
32
  function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
33
33
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
34
+ /**
35
+ * @en Global configuration for Empty component
36
+ * @cn Empty组件的全局配置
37
+ * @version 3.8.0
38
+ */
39
+
34
40
  var processEnv = typeof process !== 'undefined' ? (_process = process) === null || _process === void 0 ? void 0 : _process.env : {};
35
41
  var config = exports.config = {
36
42
  prefix: 'soui',
@@ -39,6 +45,7 @@ var config = exports.config = {
39
45
  trim: undefined,
40
46
  spin: 'ring',
41
47
  tooltip: undefined,
48
+ empty: undefined,
42
49
  direction: 'ltr',
43
50
  popupContainer: null
44
51
  };
@@ -1 +1 @@
1
- {"version":3,"file":"empty.d.ts","sourceRoot":"","sources":["empty.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAI1C,QAAA,MAAM,KAAK,UAAW,UAAU,4CA4C/B,CAAC;AAEF,eAAe,KAAK,CAAC"}
1
+ {"version":3,"file":"empty.d.ts","sourceRoot":"","sources":["empty.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAI1C,QAAA,MAAM,KAAK,UAAW,UAAU,4CAiD/B,CAAC;AAEF,eAAe,KAAK,CAAC"}
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.default = void 0;
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
  var _classnames = _interopRequireDefault(require("classnames"));
10
- var _emptyImage = require("./empty-image");
10
+ var _icons = _interopRequireDefault(require("../icons"));
11
11
  var _config = require("../config");
12
12
  var _jsxRuntime = require("react/jsx-runtime");
13
13
  var _excluded = ["jssStyle", "style", "className", "imgSrc", "icon", "description"];
@@ -29,7 +29,8 @@ var Empty = function Empty(props) {
29
29
  description = props.description,
30
30
  rest = _objectWithoutProperties(props, _excluded);
31
31
  var _useConfig = (0, _config.useConfig)(),
32
- locale = _useConfig.locale;
32
+ locale = _useConfig.locale,
33
+ empty = _useConfig.empty;
33
34
  var styles = jssStyle === null || jssStyle === void 0 || (_jssStyle$empty = jssStyle.empty) === null || _jssStyle$empty === void 0 ? void 0 : _jssStyle$empty.call(jssStyle);
34
35
  var rootClass = (0, _classnames.default)(styles === null || styles === void 0 ? void 0 : styles.rootClass, styles === null || styles === void 0 ? void 0 : styles.empty, className);
35
36
  var wrapperClass = (0, _classnames.default)(styles === null || styles === void 0 ? void 0 : styles.wrapper);
@@ -52,16 +53,20 @@ var Empty = function Empty(props) {
52
53
  }
53
54
  return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
54
55
  className: styles === null || styles === void 0 ? void 0 : styles.image,
55
- children: icon || (0, _emptyImage.renderNoData)()
56
+ children: icon || (empty === null || empty === void 0 ? void 0 : empty.icon) || _icons.default.empty.NoData
56
57
  });
57
58
  };
58
59
  var renderDescription = function renderDescription() {
59
- if (description === false) {
60
+ // 确定最终使用的description值,优先级:props.description > 全局配置description > 默认locale文本
61
+ var finalDescription = description !== undefined ? description : (empty === null || empty === void 0 ? void 0 : empty.description) !== undefined ? empty === null || empty === void 0 ? void 0 : empty.description : (0, _config.getLocale)(locale, 'noData');
62
+
63
+ // 如果最终确定的description值为false,则不显示描述
64
+ if (finalDescription === false) {
60
65
  return null;
61
66
  }
62
67
  return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
63
68
  className: styles === null || styles === void 0 ? void 0 : styles.description,
64
- children: description || (0, _config.getLocale)(locale, 'noData')
69
+ children: finalDescription
65
70
  });
66
71
  };
67
72
  return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", _objectSpread(_objectSpread({
@@ -17,13 +17,13 @@ export interface EmptyProps extends Pick<CommonType, 'className' | 'style'>, Rea
17
17
  */
18
18
  imgSrc?: string;
19
19
  /**
20
- * @en Empty state icon
21
- * @cn 空状态图标
20
+ * @en Empty state icon. Enhanced in v3.8.0 to support global configuration via setConfig
21
+ * @cn 空状态图标。3.8.0版本增强,支持通过setConfig进行全局配置
22
22
  */
23
23
  icon?: React.ReactNode;
24
24
  /**
25
- * @en Description, if false, the description will not be displayed
26
- * @cn 描述,若为false则不显示描述
25
+ * @en Description, if false, the description will not be displayed. Enhanced in v3.8.0 to support global configuration via setConfig
26
+ * @cn 描述,若为false则不显示描述。3.8.0版本增强,支持通过setConfig进行全局配置
27
27
  */
28
28
  description?: React.ReactNode | boolean;
29
29
  }
@@ -43,6 +43,9 @@ declare const config: {
43
43
  dropdown: {
44
44
  DropdownArrow: import("react/jsx-runtime").JSX.Element;
45
45
  };
46
+ empty: {
47
+ NoData: import("react/jsx-runtime").JSX.Element;
48
+ };
46
49
  editableArea: {
47
50
  Close: import("react/jsx-runtime").JSX.Element;
48
51
  };
@@ -1 +1 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["config.tsx"],"names":[],"mappings":"AACA,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0JX,CAAC;AAEF,KAAK,WAAW,CAAC,CAAC,IAAI;KACnB,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CAC/B,CAAC;AACF,KAAK,cAAc,GAAG,WAAW,CAAC,OAAO,MAAM,CAAC,CAAC;AAGjD,eAAO,MAAM,QAAQ,cAAe,cAAc,SAYjD,CAAC;AAEF,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["config.tsx"],"names":[],"mappings":"AACA,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6JX,CAAC;AAEF,KAAK,WAAW,CAAC,CAAC,IAAI;KACnB,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CAC/B,CAAC;AACF,KAAK,cAAc,GAAG,WAAW,CAAC,OAAO,MAAM,CAAC,CAAC;AAGjD,eAAO,MAAM,QAAQ,cAAe,cAAc,SAYjD,CAAC;AAEF,eAAe,MAAM,CAAC"}
@@ -57,6 +57,9 @@ var config = {
57
57
  dropdown: {
58
58
  DropdownArrow: _icons.default.ArrowDown
59
59
  },
60
+ empty: {
61
+ NoData: _icons.default.EmptyNoData
62
+ },
60
63
  editableArea: {
61
64
  Close: _icons.default.CloseFill
62
65
  },
@@ -39,6 +39,7 @@ declare const Icons: {
39
39
  StarFill: import("react/jsx-runtime").JSX.Element;
40
40
  Link: import("react/jsx-runtime").JSX.Element;
41
41
  Loading: import("react/jsx-runtime").JSX.Element;
42
+ EmptyNoData: import("react/jsx-runtime").JSX.Element;
42
43
  };
43
44
  export default Icons;
44
45
  //# sourceMappingURL=icons.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["icons.tsx"],"names":[],"mappings":"AAgSA,QAAA,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoDV,CAAC;AAEF,eAAe,KAAK,CAAC"}
1
+ {"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["icons.tsx"],"names":[],"mappings":"AAyaA,QAAA,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsDV,CAAC;AAEF,eAAe,KAAK,CAAC"}
@@ -224,6 +224,154 @@ var link = ['M8.83231 20.7322C7.27024 22.2943 4.73759 22.2943 3.17546 20.7322C1.
224
224
  var filter = /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
225
225
  d: "M19.9653 2.10633C20.5175 2.10633 20.9652 2.55404 20.9652 3.10633C20.9652 3.65861 20.5175 4.10633 19.9653 4.10633H19.6834L14.9666 11.3709V19.8936C14.9666 20.9981 14.0712 21.8936 12.9666 21.8936H10.9666C9.86204 21.8936 8.96662 20.9981 8.96662 19.8936V11.3709L4.35408 4.10632L4.03906 4.10632C3.48677 4.10632 3.03906 3.65861 3.03906 3.10632C3.03906 2.55404 3.48677 2.10632 4.03906 2.10632L19.9653 2.10633ZM6.75776 4.10632L10.8119 10.5206C10.913 10.6804 10.9666 10.8657 10.9666 11.0548V18.8312C10.9666 19.3835 11.4143 19.8312 11.9666 19.8312C12.5189 19.8312 12.9666 19.3835 12.9666 18.8312V11.0609C12.9666 10.868 13.0224 10.6792 13.1273 10.5172L17.2797 4.10633L6.75776 4.10632Z"
226
226
  });
227
+ var emptyNoData = /*#__PURE__*/(0, _jsxRuntime.jsxs)("svg", {
228
+ width: "100",
229
+ height: "75",
230
+ viewBox: "0 0 100 75",
231
+ fill: "none",
232
+ xmlns: "http://www.w3.org/2000/svg",
233
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("g", {
234
+ clipPath: "url(#clip0_4044_10434)",
235
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
236
+ d: "M100 75C100 63.3607 77.6144 53.9257 50 53.9257C22.3857 53.9257 0 63.3607 0 75H100Z",
237
+ fill: "url(#paint0_linear_4044_10434)"
238
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("g", {
239
+ opacity: "0.3",
240
+ filter: "url(#filter0_f_4044_10434)",
241
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
242
+ d: "M50.3087 70.0413C69.5706 70.0413 85.185 68.2375 85.185 66.0125C85.185 63.7875 69.5706 61.9835 50.3087 61.9835C31.0469 61.9835 15.4321 63.7875 15.4321 66.0125C15.4321 68.2375 31.0469 70.0413 50.3087 70.0413Z",
243
+ fill: "#979EB0"
244
+ })
245
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
246
+ d: "M22.6082 23.6395C22.782 23.2127 23.1957 22.9338 23.6548 22.9338H75.7168C76.1718 22.9338 76.5818 23.2071 76.7593 23.6275L82.9493 38.3482H16.6184L22.6082 23.6395Z",
247
+ fill: "#CCCFD7"
248
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
249
+ d: "M75.9819 23.9172V37.2382H81.2882L75.9819 23.9172Z",
250
+ fill: "#999DA8"
251
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
252
+ d: "M18.877 37.0161H81.0701C82.6314 37.0161 83.897 38.2871 83.897 39.8547V61.7805C83.897 64.2888 81.872 66.3225 79.3739 66.3225H20.5732C18.0752 66.3225 16.05 64.2888 16.05 61.7805V39.8547C16.05 38.2871 17.3157 37.0161 18.877 37.0161Z",
253
+ fill: "#E8EBF0"
254
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("g", {
255
+ filter: "url(#filter1_d_4044_10434)",
256
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
257
+ d: "M16.0493 42.3192C16.0493 39.8108 16.0019 37.715 20.573 37.7774H79.3737C83.5612 37.7774 83.8968 39.8108 83.8968 42.3192V61.3998C83.8968 63.9087 81.8718 65.9419 79.3737 65.9419H20.573C18.075 65.9419 16.0493 63.9087 16.0493 61.3998V42.3192Z",
258
+ fill: "black"
259
+ })
260
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
261
+ d: "M16.0493 42.3192C16.0493 39.8108 16.0019 37.715 20.573 37.7774H79.3737C83.5612 37.7774 83.8968 39.8108 83.8968 42.3192V61.3998C83.8968 63.9087 81.8718 65.9419 79.3737 65.9419H20.573C18.075 65.9419 16.0493 63.9087 16.0493 61.3998V42.3192Z",
262
+ fill: "#F4F5F8"
263
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
264
+ d: "M23.4412 23.8855V37.0162H18.3242L23.4412 23.8855Z",
265
+ fill: "#999DA8"
266
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
267
+ d: "M60.3971 50.7178H39.5502C38.0849 50.7178 36.897 51.9106 36.897 53.382C36.897 54.8534 38.0849 56.0462 39.5502 56.0462H60.3971C61.8625 56.0462 63.0501 54.8534 63.0501 53.382C63.0501 51.9106 61.8625 50.7178 60.3971 50.7178Z",
268
+ fill: "#666C7C"
269
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
270
+ d: "M60.3971 49.9565H39.5502C38.0849 49.9565 36.897 51.1494 36.897 52.6208C36.897 54.0922 38.0849 55.285 39.5502 55.285H60.3971C61.8625 55.285 63.0501 54.0922 63.0501 52.6208C63.0501 51.1494 61.8625 49.9565 60.3971 49.9565Z",
271
+ fill: "#999DA8"
272
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
273
+ fillRule: "evenodd",
274
+ clipRule: "evenodd",
275
+ d: "M46.041 3.14062C42.6319 3.14062 39.8682 5.91575 39.8682 9.33899V11.4859C39.8682 14.9092 42.6319 17.6842 46.041 17.6842H54.8002C58.2093 17.6842 60.9731 14.9092 60.9731 11.4859V9.33899C60.9731 5.91575 58.2093 3.14062 54.8002 3.14062H46.041ZM47.3169 21.0086L49.386 17.6842H45.2478L47.3169 21.0086Z",
276
+ fill: "#E8EBF0"
277
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
278
+ d: "M45.6834 8.54285L47.4941 11.6922H43.8726L45.6834 8.54285Z",
279
+ fill: "#999DA8"
280
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
281
+ d: "M52.304 8.54285H49.1677V11.6921H52.304V8.54285Z",
282
+ fill: "#999DA8"
283
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
284
+ d: "M55.6802 11.6919C56.5463 11.6919 57.2484 10.9869 57.2484 10.1172C57.2484 9.2476 56.5463 8.5426 55.6802 8.5426C54.8142 8.5426 54.1121 9.2476 54.1121 10.1172C54.1121 10.9869 54.8142 11.6919 55.6802 11.6919Z",
285
+ fill: "#999DA8"
286
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
287
+ d: "M67.7256 5.8507C66.5081 6.69694 63.5181 6.751 62.3457 7.09731L63.5875 5.64293C64.415 4.6041 64.6631 4.10547 65.6562 2.11091C66.6493 0.116362 69.3118 -0.105256 70.415 0.0332553C69.7943 1.27985 70.415 3.98081 67.7256 5.8507Z",
288
+ fill: "#E8EBF0"
289
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
290
+ d: "M46.257 34.8904C45.3444 35.1307 43.5421 34.5087 42.7649 34.4595L43.824 33.8603C44.5451 33.4193 44.802 33.175 45.8298 32.198C46.8574 31.221 48.4998 31.6709 49.1305 31.9953C48.4883 32.606 48.2737 34.3593 46.257 34.8904Z",
291
+ fill: "#E8EBF0"
292
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
293
+ d: "M37.262 32.7723C37.13 32.5427 37.2462 32.2485 37.4982 32.1696C39.7646 31.4593 49.3015 28.2658 55.6537 22.9713C62.0347 17.653 67.6725 11.576 69.1256 9.9791C69.3069 9.77991 69.6263 9.81841 69.76 10.0521C69.845 10.1989 69.8294 10.3803 69.7169 10.507C68.6225 11.7406 62.8044 18.1953 56.0675 23.6911C48.7371 29.6708 39.4667 32.4671 37.7105 32.9602C37.5349 33.0096 37.3532 32.9308 37.262 32.7723Z",
294
+ fill: "#E8EBF0"
295
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
296
+ d: "M26.0283 27.1925C25.977 26.9505 26.1514 26.7154 26.396 26.6852C27.3291 26.5701 29.6586 26.1971 33.309 25.0577C37.011 23.9021 40.6908 21.2137 41.9723 20.2199C42.1914 20.05 42.5167 20.1675 42.5743 20.4394C42.6023 20.572 42.5585 20.7071 42.454 20.793C41.598 21.497 37.5626 24.6932 33.4811 25.8705C29.5763 26.9969 27.2876 27.3842 26.4592 27.5011C26.2561 27.5298 26.0709 27.394 26.0283 27.1925Z",
297
+ fill: "#E8EBF0"
298
+ })]
299
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("defs", {
300
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("filter", {
301
+ id: "filter0_f_4044_10434",
302
+ x: "9.43213",
303
+ y: "55.9835",
304
+ width: "81.7529",
305
+ height: "20.0577",
306
+ filterUnits: "userSpaceOnUse",
307
+ colorInterpolationFilters: "sRGB",
308
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("feFlood", {
309
+ floodOpacity: "0",
310
+ result: "BackgroundImageFix"
311
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("feBlend", {
312
+ mode: "normal",
313
+ in: "SourceGraphic",
314
+ in2: "BackgroundImageFix",
315
+ result: "shape"
316
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("feGaussianBlur", {
317
+ stdDeviation: "3",
318
+ result: "effect1_foregroundBlur_4044_10434"
319
+ })]
320
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("filter", {
321
+ id: "filter1_d_4044_10434",
322
+ x: "16.0493",
323
+ y: "37.776",
324
+ width: "67.8474",
325
+ height: "30.1659",
326
+ filterUnits: "userSpaceOnUse",
327
+ colorInterpolationFilters: "sRGB",
328
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("feFlood", {
329
+ floodOpacity: "0",
330
+ result: "BackgroundImageFix"
331
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("feColorMatrix", {
332
+ in: "SourceAlpha",
333
+ type: "matrix",
334
+ values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",
335
+ result: "hardAlpha"
336
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("feOffset", {
337
+ dy: "2"
338
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("feColorMatrix", {
339
+ type: "matrix",
340
+ values: "0 0 0 0 0.803922 0 0 0 0 0.811765 0 0 0 0 0.843137 0 0 0 1 0"
341
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("feBlend", {
342
+ mode: "normal",
343
+ in2: "BackgroundImageFix",
344
+ result: "effect1_dropShadow_4044_10434"
345
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("feBlend", {
346
+ mode: "normal",
347
+ in: "SourceGraphic",
348
+ in2: "effect1_dropShadow_4044_10434",
349
+ result: "shape"
350
+ })]
351
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("linearGradient", {
352
+ id: "paint0_linear_4044_10434",
353
+ x1: "50",
354
+ y1: "53.9257",
355
+ x2: "50",
356
+ y2: "75",
357
+ gradientUnits: "userSpaceOnUse",
358
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("stop", {
359
+ stopColor: "#E9EBEF"
360
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("stop", {
361
+ offset: "1",
362
+ stopColor: "#E9EBEF",
363
+ stopOpacity: "0"
364
+ })]
365
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("clipPath", {
366
+ id: "clip0_4044_10434",
367
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)("rect", {
368
+ width: "100",
369
+ height: "75",
370
+ fill: "white"
371
+ })
372
+ })]
373
+ })]
374
+ });
227
375
  var Icons = {
228
376
  SortAsc: SortAsc,
229
377
  SortDesc: SortDesc,
@@ -264,6 +412,7 @@ var Icons = {
264
412
  RecoverCircle: icon(recoverCircle),
265
413
  StarFill: icon(pcStarFill),
266
414
  Link: icon(link),
267
- Loading: icon(loading)
415
+ Loading: icon(loading),
416
+ EmptyNoData: emptyNoData
268
417
  };
269
418
  var _default = exports.default = Icons;
@@ -342,7 +342,8 @@ var Modal = function Modal(props) {
342
342
  onAnimationEnd: handleAnimationEnd,
343
343
  style: {
344
344
  background: props.maskBackground,
345
- zIndex: props.zIndex
345
+ zIndex: props.zIndex,
346
+ display: !visible && !animation ? 'none' : undefined
346
347
  },
347
348
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", _objectSpread(_objectSpread({
348
349
  className: modalClasses === null || modalClasses === void 0 ? void 0 : modalClasses.mask
@@ -1 +1 @@
1
- {"version":3,"file":"popover.d.ts","sourceRoot":"","sources":["popover.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAM9C,QAAA,MAAM,OAAO,UAAW,YAAY,wDA+LnC,CAAC;AAEF,eAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"popover.d.ts","sourceRoot":"","sources":["popover.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAM9C,QAAA,MAAM,OAAO,UAAW,YAAY,wDAsMnC,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -47,7 +47,8 @@ var Popover = function Popover(props) {
47
47
  _props$zIndex = props.zIndex,
48
48
  zIndex = _props$zIndex === void 0 ? 1060 : _props$zIndex;
49
49
  var _React$useRef = _react.default.useRef({
50
- rendered: false
50
+ rendered: false,
51
+ hasOpened: false
51
52
  }),
52
53
  context = _React$useRef.current;
53
54
  var config = (0, _config.useConfig)();
@@ -161,8 +162,16 @@ var Popover = function Popover(props) {
161
162
  });
162
163
  }
163
164
  context.rendered = true;
164
- var childrened = _hooks.util.isFunc(children) ? children(closePop) : children;
165
+
166
+ // Track if popover has ever been opened
167
+ if (open && !context.hasOpened) {
168
+ context.hasOpened = true;
169
+ }
170
+
171
+ // Only execute functional children after popover has been opened at least once
172
+ var childrened = _hooks.util.isFunc(children) ? context.hasOpened ? children(closePop) : null : children;
165
173
  var containerStyle = {
174
+ display: open ? undefined : 'none',
166
175
  borderColor: props.border,
167
176
  backgroundColor: props.background
168
177
  };
@@ -1 +1 @@
1
- {"version":3,"file":"group-context.d.ts","sourceRoot":"","sources":["group-context.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,QAAA,MAAM,YAAY,qCAAgC,CAAC;AAEnD,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"group-context.d.ts","sourceRoot":"","sources":["group-context.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,QAAA,MAAM,YAAY,qCAAgC,CAAC;AAInD,eAAe,YAAY,CAAC"}
@@ -7,4 +7,5 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.default = void 0;
8
8
  var _react = require("react");
9
9
  var groupContext = /*#__PURE__*/(0, _react.createContext)({});
10
+ groupContext.displayName = 'RadioGroupContext';
10
11
  var _default = exports.default = groupContext;
@@ -1 +1 @@
1
- {"version":3,"file":"radio-group.d.ts","sourceRoot":"","sources":["radio-group.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAarD,QAAA,MAAM,KAAK,wGA+HV,CAAC;AAEF,eAAe,KAAK,CAAC"}
1
+ {"version":3,"file":"radio-group.d.ts","sourceRoot":"","sources":["radio-group.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAarD,QAAA,MAAM,KAAK,wGAgIV,CAAC;AAEF,eAAe,KAAK,CAAC"}
@@ -123,7 +123,11 @@ var Group = function Group(props0) {
123
123
  var Radios = props.data === undefined ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_groupContext.default.Provider, {
124
124
  value: providerValue,
125
125
  children: children
126
- }) : /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
126
+ }) :
127
+ /*#__PURE__*/
128
+ // 传一个空的providerValue目的是为了避免父级Radio向下传递的GroupContext.Consumer影响
129
+ (0, _jsxRuntime.jsxs)(_groupContext.default.Provider, {
130
+ value: {},
127
131
  children: [props.data.map(function (d, i) {
128
132
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_radio.default, {
129
133
  jssStyle: jssStyle,
@@ -1 +1 @@
1
- {"version":3,"file":"simple-radio.d.ts","sourceRoot":"","sources":["simple-radio.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAGhD,QAAA,MAAM,KAAK,UAAW,gBAAgB,4CAoDrC,CAAC;AAEF,eAAe,KAAK,CAAC"}
1
+ {"version":3,"file":"simple-radio.d.ts","sourceRoot":"","sources":["simple-radio.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAGhD,QAAA,MAAM,KAAK,UAAW,gBAAgB,4CAqDrC,CAAC;AAEF,eAAe,KAAK,CAAC"}
@@ -45,7 +45,8 @@ var Radio = function Radio(props) {
45
45
  var inputProps = getInputProps();
46
46
  var rootProps = getRootProps({
47
47
  className: rootClass,
48
- style: style
48
+ style: style,
49
+ needStopPropagation: true
49
50
  });
50
51
  var indicatorProps = getIndicatorProps();
51
52
  var simpleRadio = /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", _objectSpread(_objectSpread({