fsk-design-system 1.0.16 → 1.0.17

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 (144) hide show
  1. package/dist/{Alert-CGNs1E7Z.js → Alert-BWoE0J-z.js} +118 -118
  2. package/dist/{Avatar-CuDuvGNh.js → Avatar-BZijVRI_.js} +141 -141
  3. package/dist/Badge-BOdGJZe4.js +692 -0
  4. package/dist/{Breadcrumb-CdANoxvR.js → Breadcrumb-DiAURlsb.js} +108 -108
  5. package/dist/Button-5lPT90hK.js +113 -0
  6. package/dist/Card-CfyoTd7h.js +121 -0
  7. package/dist/{Carousel-DI8dimyj.js → Carousel-VP2X7jvQ.js} +353 -353
  8. package/dist/Cascader.form-DhqzW_Al.js +1207 -0
  9. package/dist/Checkbox.form-0O6VC-qG.js +125 -0
  10. package/dist/{Collapse-DyTr-nYI.js → Collapse-DIx06FCE.js} +133 -133
  11. package/dist/Comment-bEkRzNt3.js +218 -0
  12. package/dist/ControlWrapper-BlB17VkE.js +133 -0
  13. package/dist/{CountrySelect-BAoqn-1R.js → CountrySelect-CSNdz2Pf.js} +26 -26
  14. package/dist/{DatePicker.form-BhmKRJ8C.js → DatePicker.form-DEDTpFCe.js} +1129 -1129
  15. package/dist/{Divider-O2sYaAgG.js → Divider-BW2Ul4OH.js} +32 -32
  16. package/dist/{Dragger.form-iWutnYD0.js → Dragger.form-C3dKRjqV.js} +409 -409
  17. package/dist/Drawer-C5C9SRtt.js +744 -0
  18. package/dist/Dropdown-CPaP6KHY.js +49 -0
  19. package/dist/{Empty-D08Vpl1S.js → Empty-BIpPjDi_.js} +3 -3
  20. package/dist/FileButton-Cm9i0xEF.js +70 -0
  21. package/dist/Form-oh0HEXFj.js +165 -0
  22. package/dist/Grid-Be4EG_ON.js +17 -0
  23. package/dist/Header-Dnkgc5Bd.js +160 -0
  24. package/dist/Hint-88QV8H1D.js +23 -0
  25. package/dist/Input.form-CoUh7jta.js +510 -0
  26. package/dist/InputNumber.form-D7w3l0l7.js +1243 -0
  27. package/dist/Layout-DBX6YMWd.js +126 -0
  28. package/dist/LinkCard-CaQziIVi.js +108 -0
  29. package/dist/{Modal-DyKIlW3w.js → Modal-nA7RJBGW.js} +197 -197
  30. package/dist/Notification-DZQd5H8c.js +52 -0
  31. package/dist/Notifications-BpLefqob.js +44 -0
  32. package/dist/{Pagination-CzF3KzKQ.js → Pagination-6hLahKo6.js} +1 -1
  33. package/dist/{Plug-CdYkNyW1.js → Plug-V0uWvTGd.js} +15 -15
  34. package/dist/Popover-Cp1-DvYC.js +26 -0
  35. package/dist/{Progress-LdQutlLe.js → Progress-O8h7ZQI1.js} +6 -6
  36. package/dist/Radio.form-Cfwyo-KT.js +145 -0
  37. package/dist/Search.form-Va7M7JMr.js +58 -0
  38. package/dist/Select.form-C8OU4-tO.js +136 -0
  39. package/dist/Skeleton-CVw8LtSq.js +58 -0
  40. package/dist/Support-CAGSXkqm.js +92 -0
  41. package/dist/Switch.form-zKu5wwbP.js +506 -0
  42. package/dist/{Table-BbESyiuM.js → Table-BolrfU-t.js} +535 -535
  43. package/dist/Tabs-DLulk8oo.js +1939 -0
  44. package/dist/Tag-Dj70_SU1.js +318 -0
  45. package/dist/TextArea.form-DoH1jpkA.js +83 -0
  46. package/dist/Tooltip-Dtie1ebz.js +54 -0
  47. package/dist/Upload.form-BWtIVfxR.js +38 -0
  48. package/dist/UserMenu-C5CXG4-x.js +129 -0
  49. package/dist/components/ActionMenu/index.js +33 -33
  50. package/dist/components/Alert/index.js +1 -1
  51. package/dist/components/Avatar/index.js +1 -1
  52. package/dist/components/Badge/index.js +1 -1
  53. package/dist/components/Breadcrumb/index.js +1 -1
  54. package/dist/components/Button/Button.test.d.ts +1 -0
  55. package/dist/components/Button/index.js +1 -1
  56. package/dist/components/Card/LinkCard/index.js +1 -1
  57. package/dist/components/Card/index.js +1 -1
  58. package/dist/components/Carousel/index.js +1 -1
  59. package/dist/components/Cascader/index.js +1 -1
  60. package/dist/components/Checkbox/index.js +1 -1
  61. package/dist/components/Collapse/index.js +1 -1
  62. package/dist/components/Comment/Form/index.js +1 -1
  63. package/dist/components/Comment/index.js +1 -1
  64. package/dist/components/ControlWrapper/index.js +1 -1
  65. package/dist/components/DatePicker/index.js +1 -1
  66. package/dist/components/Divider/index.js +1 -1
  67. package/dist/components/Drawer/Drawer.test.d.ts +1 -0
  68. package/dist/components/Drawer/index.js +1 -1
  69. package/dist/components/Dropdown/index.js +1 -1
  70. package/dist/components/Empty/index.js +1 -1
  71. package/dist/components/Grid/index.js +1 -1
  72. package/dist/components/Hint/Hint.test.d.ts +1 -0
  73. package/dist/components/Hint/index.js +1 -1
  74. package/dist/components/Input/Input.test.d.ts +1 -0
  75. package/dist/components/Input/index.js +1 -1
  76. package/dist/components/InputNumber/index.js +1 -1
  77. package/dist/components/Layout/Header/Notifications/index.js +1 -1
  78. package/dist/components/Layout/Header/Support/index.js +1 -1
  79. package/dist/components/Layout/Header/index.js +1 -1
  80. package/dist/components/Layout/index.js +1 -1
  81. package/dist/components/Modal/Modal.test.d.ts +1 -0
  82. package/dist/components/Modal/index.js +1 -1
  83. package/dist/components/Notification/index.js +2 -2
  84. package/dist/components/Pagination/index.js +1 -1
  85. package/dist/components/PhoneInput/CountrySelect/index.js +1 -1
  86. package/dist/components/PhoneInput/index.js +2 -2
  87. package/dist/components/Plug/index.js +1 -1
  88. package/dist/components/Popover/index.js +1 -1
  89. package/dist/components/Progress/index.js +1 -1
  90. package/dist/components/Radio/index.js +1 -1
  91. package/dist/components/Search/index.js +1 -1
  92. package/dist/components/Select/index.js +1 -1
  93. package/dist/components/Skeleton/index.js +1 -1
  94. package/dist/components/Switch/Switch.test.d.ts +1 -0
  95. package/dist/components/Switch/index.js +1 -1
  96. package/dist/components/Table/index.js +1 -1
  97. package/dist/components/Tabs/index.js +1 -1
  98. package/dist/components/Tag/index.js +1 -1
  99. package/dist/components/TextArea/TextArea.test.d.ts +1 -0
  100. package/dist/components/TextArea/index.js +1 -1
  101. package/dist/components/Tooltip/Tooltip.test.d.ts +1 -0
  102. package/dist/components/Tooltip/index.js +1 -1
  103. package/dist/components/Upload/Dragger/index.js +1 -1
  104. package/dist/components/Upload/FileButton/index.js +1 -1
  105. package/dist/components/Upload/index.js +1 -1
  106. package/dist/components/UserMenu/index.js +1 -1
  107. package/dist/components/index.js +40 -40
  108. package/dist/index.js +40 -40
  109. package/dist/setupTests.d.ts +0 -0
  110. package/dist/{useNotification-DZmgFYiQ.js → useNotification-BEoLIioc.js} +1 -1
  111. package/package.json +7 -2
  112. package/dist/Badge-C46NtA97.js +0 -692
  113. package/dist/Button-Bt34w4fJ.js +0 -113
  114. package/dist/Card-DbmxvQ6R.js +0 -121
  115. package/dist/Cascader.form-kIlOSnAa.js +0 -1207
  116. package/dist/Checkbox.form-BAQvotGg.js +0 -125
  117. package/dist/Comment-BcSlD_WX.js +0 -218
  118. package/dist/ControlWrapper-B9yH9JQL.js +0 -133
  119. package/dist/Drawer-Kz7Jhmpn.js +0 -744
  120. package/dist/Dropdown-DE_-5uPD.js +0 -49
  121. package/dist/FileButton-Cwyn01XX.js +0 -70
  122. package/dist/Form-DPFrQuEa.js +0 -165
  123. package/dist/Grid-BA0qqtKk.js +0 -17
  124. package/dist/Header-Duj1MPr7.js +0 -160
  125. package/dist/Hint-D2ARoJcf.js +0 -23
  126. package/dist/Input.form-CGqrfa89.js +0 -510
  127. package/dist/InputNumber.form-971uipC6.js +0 -1243
  128. package/dist/Layout-Bi6CxQMm.js +0 -126
  129. package/dist/LinkCard-BkoVdpyj.js +0 -108
  130. package/dist/Notification-YJzZgTWs.js +0 -52
  131. package/dist/Notifications-DRK3J940.js +0 -44
  132. package/dist/Popover-DY7IUutv.js +0 -26
  133. package/dist/Radio.form-DV6vu_jc.js +0 -145
  134. package/dist/Search.form-Gyaevts5.js +0 -58
  135. package/dist/Select.form-DJpyLdEn.js +0 -136
  136. package/dist/Skeleton-DLoF5WWi.js +0 -58
  137. package/dist/Support-BoZIJOnF.js +0 -92
  138. package/dist/Switch.form-B4PujVMU.js +0 -506
  139. package/dist/Tabs-CCAllZ5F.js +0 -1939
  140. package/dist/Tag-BpDch8qp.js +0 -318
  141. package/dist/TextArea.form-Bu9PUCnQ.js +0 -83
  142. package/dist/Tooltip-CPOX72aN.js +0 -54
  143. package/dist/Upload.form-BHoeRKa4.js +0 -38
  144. package/dist/UserMenu-d-6kvmei.js +0 -129
@@ -1,47 +1,47 @@
1
- import { j as G } from "./emotion-react-jsx-runtime.browser.esm-BzbZGnbz.js";
1
+ import { j as S } from "./emotion-react-jsx-runtime.browser.esm-BzbZGnbz.js";
2
2
  import { S as ee } from "./close-CdIAG4DZ.js";
3
- import { B as oe } from "./Button-Bt34w4fJ.js";
3
+ import { B as oe } from "./Button-5lPT90hK.js";
4
4
  import { c as te } from "./emotion-styled-base.browser.esm-B5hPI6jF.js";
5
- import * as i from "react";
5
+ import * as a from "react";
6
6
  import { R as ne } from "./CheckCircleFilled-aYCJP93m.js";
7
7
  import { R as re } from "./CloseCircleFilled-aRFAKWCB.js";
8
- import { R as ie } from "./CloseOutlined-DyiYNFyx.js";
9
- import { R as ce } from "./ExclamationCircleFilled-B4-6opLK.js";
10
- import { R as ae } from "./InfoCircleFilled-S2iy4_UJ.js";
11
- import { g as se, e as le, b as L, u as de, c as S, v as me, G as pe, H as w, I as ue, J as ge, h as be, i as fe } from "./genStyleUtils-git9kFa9.js";
12
- import { b as ye } from "./index-C2fzIJCf.js";
13
- import { p as Ie } from "./pickAttrs-J0nYVkHF.js";
8
+ import { R as ae } from "./CloseOutlined-DyiYNFyx.js";
9
+ import { R as ie } from "./ExclamationCircleFilled-B4-6opLK.js";
10
+ import { R as ce } from "./InfoCircleFilled-S2iy4_UJ.js";
11
+ import { g as se, e as le, b as j, u as de, c as B, v as me, G as pe, H as G, I as ue, J as ge, h as be, i as fe } from "./genStyleUtils-git9kFa9.js";
12
+ import { b as Ie } from "./index-C2fzIJCf.js";
13
+ import { p as ve } from "./pickAttrs-J0nYVkHF.js";
14
14
  import { r as Ce } from "./reactNode-CwSzDQK_.js";
15
- import { d as ve } from "./warning-CzsCZOlq.js";
16
- const x = (e, o, t, n, r) => ({
15
+ import { d as ye } from "./warning-CzsCZOlq.js";
16
+ const h = (e, o, t, n, r) => ({
17
17
  background: e,
18
- border: `${L(n.lineWidth)} ${n.lineType} ${o}`,
18
+ border: `${j(n.lineWidth)} ${n.lineType} ${o}`,
19
19
  [`${r}-icon`]: {
20
20
  color: t
21
21
  }
22
- }), he = (e) => {
22
+ }), xe = (e) => {
23
23
  const {
24
24
  componentCls: o,
25
25
  motionDurationSlow: t,
26
26
  marginXS: n,
27
27
  marginSM: r,
28
- fontSize: c,
28
+ fontSize: i,
29
29
  fontSizeLG: l,
30
30
  lineHeight: d,
31
31
  borderRadiusLG: u,
32
32
  motionEaseInOutCirc: m,
33
33
  withDescriptionIconSize: g,
34
34
  colorText: b,
35
- colorTextHeading: I,
35
+ colorTextHeading: v,
36
36
  withDescriptionPadding: C,
37
- defaultPadding: a
37
+ defaultPadding: c
38
38
  } = e;
39
39
  return {
40
40
  [o]: Object.assign(Object.assign({}, le(e)), {
41
41
  position: "relative",
42
42
  display: "flex",
43
43
  alignItems: "center",
44
- padding: a,
44
+ padding: c,
45
45
  wordWrap: "break-word",
46
46
  borderRadius: u,
47
47
  [`&${o}-rtl`]: {
@@ -57,11 +57,11 @@ const x = (e, o, t, n, r) => ({
57
57
  },
58
58
  "&-description": {
59
59
  display: "none",
60
- fontSize: c,
60
+ fontSize: i,
61
61
  lineHeight: d
62
62
  },
63
63
  "&-message": {
64
- color: I
64
+ color: v
65
65
  },
66
66
  [`&${o}-motion-leave`]: {
67
67
  overflow: "hidden",
@@ -89,7 +89,7 @@ const x = (e, o, t, n, r) => ({
89
89
  [`${o}-message`]: {
90
90
  display: "block",
91
91
  marginBottom: n,
92
- color: I,
92
+ color: v,
93
93
  fontSize: l
94
94
  },
95
95
  [`${o}-description`]: {
@@ -103,28 +103,28 @@ const x = (e, o, t, n, r) => ({
103
103
  borderRadius: 0
104
104
  }
105
105
  };
106
- }, xe = (e) => {
106
+ }, he = (e) => {
107
107
  const {
108
108
  componentCls: o,
109
109
  colorSuccess: t,
110
110
  colorSuccessBorder: n,
111
111
  colorSuccessBg: r,
112
- colorWarning: c,
112
+ colorWarning: i,
113
113
  colorWarningBorder: l,
114
114
  colorWarningBg: d,
115
115
  colorError: u,
116
116
  colorErrorBorder: m,
117
117
  colorErrorBg: g,
118
118
  colorInfo: b,
119
- colorInfoBorder: I,
119
+ colorInfoBorder: v,
120
120
  colorInfoBg: C
121
121
  } = e;
122
122
  return {
123
123
  [o]: {
124
- "&-success": x(r, n, t, e, o),
125
- "&-info": x(C, I, b, e, o),
126
- "&-warning": x(d, l, c, e, o),
127
- "&-error": Object.assign(Object.assign({}, x(g, m, u, e, o)), {
124
+ "&-success": h(r, n, t, e, o),
125
+ "&-info": h(C, v, b, e, o),
126
+ "&-warning": h(d, l, i, e, o),
127
+ "&-error": Object.assign(Object.assign({}, h(g, m, u, e, o)), {
128
128
  [`${o}-description > pre`]: {
129
129
  margin: 0,
130
130
  padding: 0
@@ -132,13 +132,13 @@ const x = (e, o, t, n, r) => ({
132
132
  })
133
133
  }
134
134
  };
135
- }, Ge = (e) => {
135
+ }, Se = (e) => {
136
136
  const {
137
137
  componentCls: o,
138
138
  iconCls: t,
139
139
  motionDurationMid: n,
140
140
  marginXS: r,
141
- fontSizeIcon: c,
141
+ fontSizeIcon: i,
142
142
  colorIcon: l,
143
143
  colorIconHover: d
144
144
  } = e;
@@ -151,8 +151,8 @@ const x = (e, o, t, n, r) => ({
151
151
  marginInlineStart: r,
152
152
  padding: 0,
153
153
  overflow: "hidden",
154
- fontSize: c,
155
- lineHeight: L(c),
154
+ fontSize: i,
155
+ lineHeight: j(i),
156
156
  backgroundColor: "transparent",
157
157
  border: "none",
158
158
  outline: "none",
@@ -174,157 +174,157 @@ const x = (e, o, t, n, r) => ({
174
174
  }
175
175
  }
176
176
  };
177
- }, Se = (e) => ({
177
+ }, Be = (e) => ({
178
178
  withDescriptionIconSize: e.fontSizeHeading3,
179
179
  defaultPadding: `${e.paddingContentVerticalSM}px 12px`,
180
180
  withDescriptionPadding: `${e.paddingMD}px ${e.paddingContentHorizontalLG}px`
181
- }), Ne = se("Alert", (e) => [he(e), xe(e), Ge(e)], Se);
182
- var E = function(e, o) {
181
+ }), Xe = se("Alert", (e) => [xe(e), he(e), Se(e)], Be);
182
+ var O = function(e, o) {
183
183
  var t = {};
184
184
  for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && o.indexOf(n) < 0 && (t[n] = e[n]);
185
185
  if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, n = Object.getOwnPropertySymbols(e); r < n.length; r++)
186
186
  o.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (t[n[r]] = e[n[r]]);
187
187
  return t;
188
188
  };
189
- const $e = {
189
+ const We = {
190
190
  success: ne,
191
- info: ae,
191
+ info: ce,
192
192
  error: re,
193
- warning: ce
194
- }, We = (e) => {
193
+ warning: ie
194
+ }, $e = (e) => {
195
195
  const {
196
196
  icon: o,
197
197
  prefixCls: t,
198
198
  type: n
199
- } = e, r = $e[n] || null;
200
- return o ? Ce(o, /* @__PURE__ */ i.createElement("span", {
199
+ } = e, r = We[n] || null;
200
+ return o ? Ce(o, /* @__PURE__ */ a.createElement("span", {
201
201
  className: `${t}-icon`
202
202
  }, o), () => ({
203
- className: S(`${t}-icon`, o.props.className)
204
- })) : /* @__PURE__ */ i.createElement(r, {
203
+ className: B(`${t}-icon`, o.props.className)
204
+ })) : /* @__PURE__ */ a.createElement(r, {
205
205
  className: `${t}-icon`
206
206
  });
207
- }, Be = (e) => {
207
+ }, Ne = (e) => {
208
208
  const {
209
209
  isClosable: o,
210
210
  prefixCls: t,
211
211
  closeIcon: n,
212
212
  handleClose: r,
213
- ariaProps: c
214
- } = e, l = n === !0 || n === void 0 ? /* @__PURE__ */ i.createElement(ie, null) : n;
215
- return o ? /* @__PURE__ */ i.createElement("button", Object.assign({
213
+ ariaProps: i
214
+ } = e, l = n === !0 || n === void 0 ? /* @__PURE__ */ a.createElement(ae, null) : n;
215
+ return o ? /* @__PURE__ */ a.createElement("button", Object.assign({
216
216
  type: "button",
217
217
  onClick: r,
218
218
  className: `${t}-close-icon`,
219
219
  tabIndex: 0
220
- }, c), l) : null;
221
- }, N = /* @__PURE__ */ i.forwardRef((e, o) => {
220
+ }, i), l) : null;
221
+ }, X = /* @__PURE__ */ a.forwardRef((e, o) => {
222
222
  const {
223
223
  description: t,
224
224
  prefixCls: n,
225
225
  message: r,
226
- banner: c,
226
+ banner: i,
227
227
  className: l,
228
228
  rootClassName: d,
229
229
  style: u,
230
230
  onMouseEnter: m,
231
231
  onMouseLeave: g,
232
232
  onClick: b,
233
- afterClose: I,
233
+ afterClose: v,
234
234
  showIcon: C,
235
- closable: a,
236
- closeText: v,
235
+ closable: c,
236
+ closeText: y,
237
237
  closeIcon: f,
238
- action: $,
239
- id: z
240
- } = e, A = E(e, ["description", "prefixCls", "message", "banner", "className", "rootClassName", "style", "onMouseEnter", "onMouseLeave", "onClick", "afterClose", "showIcon", "closable", "closeText", "closeIcon", "action", "id"]), [W, V] = i.useState(!1);
241
- process.env.NODE_ENV !== "production" && ve("Alert").deprecated(!v, "closeText", "closable.closeIcon");
242
- const B = i.useRef(null);
243
- i.useImperativeHandle(o, () => ({
244
- nativeElement: B.current
238
+ action: W,
239
+ id: A
240
+ } = e, Y = O(e, ["description", "prefixCls", "message", "banner", "className", "rootClassName", "style", "onMouseEnter", "onMouseLeave", "onClick", "afterClose", "showIcon", "closable", "closeText", "closeIcon", "action", "id"]), [$, L] = a.useState(!1);
241
+ process.env.NODE_ENV !== "production" && ye("Alert").deprecated(!y, "closeText", "closable.closeIcon");
242
+ const N = a.useRef(null);
243
+ a.useImperativeHandle(o, () => ({
244
+ nativeElement: N.current
245
245
  }));
246
246
  const {
247
- getPrefixCls: j,
248
- direction: M,
249
- closable: y,
250
- closeIcon: H,
251
- className: J,
252
- style: k
253
- } = de("alert"), s = j("alert", n), [Y, _, D] = Ne(s), P = (p) => {
254
- var h;
255
- V(!0), (h = e.onClose) === null || h === void 0 || h.call(e, p);
256
- }, R = i.useMemo(() => e.type !== void 0 ? e.type : c ? "warning" : "info", [e.type, c]), Q = i.useMemo(() => typeof a == "object" && a.closeIcon || v ? !0 : typeof a == "boolean" ? a : f !== !1 && f !== null && f !== void 0 ? !0 : !!y, [v, f, a, y]), O = c && C === void 0 ? !0 : C, T = S(s, `${s}-${R}`, {
247
+ getPrefixCls: H,
248
+ direction: V,
249
+ closable: I,
250
+ closeIcon: w,
251
+ className: Q,
252
+ style: M
253
+ } = de("alert"), s = H("alert", n), [D, k, J] = Xe(s), T = (p) => {
254
+ var x;
255
+ L(!0), (x = e.onClose) === null || x === void 0 || x.call(e, p);
256
+ }, Z = a.useMemo(() => e.type !== void 0 ? e.type : i ? "warning" : "info", [e.type, i]), _ = a.useMemo(() => typeof c == "object" && c.closeIcon || y ? !0 : typeof c == "boolean" ? c : f !== !1 && f !== null && f !== void 0 ? !0 : !!I, [y, f, c, I]), E = i && C === void 0 ? !0 : C, F = B(s, `${s}-${Z}`, {
257
257
  [`${s}-with-description`]: !!t,
258
- [`${s}-no-icon`]: !O,
259
- [`${s}-banner`]: !!c,
260
- [`${s}-rtl`]: M === "rtl"
261
- }, J, l, d, D, _), F = Ie(A, {
258
+ [`${s}-no-icon`]: !E,
259
+ [`${s}-banner`]: !!i,
260
+ [`${s}-rtl`]: V === "rtl"
261
+ }, Q, l, d, J, k), P = ve(Y, {
262
262
  aria: !0,
263
263
  data: !0
264
- }), U = i.useMemo(() => typeof a == "object" && a.closeIcon ? a.closeIcon : v || (f !== void 0 ? f : typeof y == "object" && y.closeIcon ? y.closeIcon : H), [f, a, v, H]), K = i.useMemo(() => {
265
- const p = a ?? y;
264
+ }), K = a.useMemo(() => typeof c == "object" && c.closeIcon ? c.closeIcon : y || (f !== void 0 ? f : typeof I == "object" && I.closeIcon ? I.closeIcon : w), [f, c, y, w]), U = a.useMemo(() => {
265
+ const p = c ?? I;
266
266
  if (typeof p == "object") {
267
267
  const {
268
- closeIcon: h
268
+ closeIcon: x
269
269
  } = p;
270
- return E(p, ["closeIcon"]);
270
+ return O(p, ["closeIcon"]);
271
271
  }
272
272
  return {};
273
- }, [a, y]);
274
- return Y(/* @__PURE__ */ i.createElement(ye, {
275
- visible: !W,
273
+ }, [c, I]);
274
+ return D(/* @__PURE__ */ a.createElement(Ie, {
275
+ visible: !$,
276
276
  motionName: `${s}-motion`,
277
277
  motionAppear: !1,
278
278
  motionEnter: !1,
279
279
  onLeaveStart: (p) => ({
280
280
  maxHeight: p.offsetHeight
281
281
  }),
282
- onLeaveEnd: I
283
- }, (p, h) => {
282
+ onLeaveEnd: v
283
+ }, (p, x) => {
284
284
  let {
285
- className: X,
285
+ className: R,
286
286
  style: q
287
287
  } = p;
288
- return /* @__PURE__ */ i.createElement("div", Object.assign({
289
- id: z,
290
- ref: me(B, h),
291
- "data-show": !W,
292
- className: S(T, X),
293
- style: Object.assign(Object.assign(Object.assign({}, k), u), q),
288
+ return /* @__PURE__ */ a.createElement("div", Object.assign({
289
+ id: A,
290
+ ref: me(N, x),
291
+ "data-show": !$,
292
+ className: B(F, R),
293
+ style: Object.assign(Object.assign(Object.assign({}, M), u), q),
294
294
  onMouseEnter: m,
295
295
  onMouseLeave: g,
296
296
  onClick: b,
297
297
  role: "alert"
298
- }, F), O ? /* @__PURE__ */ i.createElement(We, {
298
+ }, P), E ? /* @__PURE__ */ a.createElement($e, {
299
299
  description: t,
300
300
  icon: e.icon,
301
301
  prefixCls: s,
302
- type: R
303
- }) : null, /* @__PURE__ */ i.createElement("div", {
302
+ type: Z
303
+ }) : null, /* @__PURE__ */ a.createElement("div", {
304
304
  className: `${s}-content`
305
- }, r ? /* @__PURE__ */ i.createElement("div", {
305
+ }, r ? /* @__PURE__ */ a.createElement("div", {
306
306
  className: `${s}-message`
307
- }, r) : null, t ? /* @__PURE__ */ i.createElement("div", {
307
+ }, r) : null, t ? /* @__PURE__ */ a.createElement("div", {
308
308
  className: `${s}-description`
309
- }, t) : null), $ ? /* @__PURE__ */ i.createElement("div", {
309
+ }, t) : null), W ? /* @__PURE__ */ a.createElement("div", {
310
310
  className: `${s}-action`
311
- }, $) : null, /* @__PURE__ */ i.createElement(Be, {
312
- isClosable: Q,
311
+ }, W) : null, /* @__PURE__ */ a.createElement(Ne, {
312
+ isClosable: _,
313
313
  prefixCls: s,
314
- closeIcon: U,
315
- handleClose: P,
316
- ariaProps: K
314
+ closeIcon: K,
315
+ handleClose: T,
316
+ ariaProps: U
317
317
  }));
318
318
  }));
319
319
  });
320
- process.env.NODE_ENV !== "production" && (N.displayName = "Alert");
321
- function He(e, o, t) {
322
- return o = w(o), pe(e, ue() ? Reflect.construct(o, t || [], w(e).constructor) : o.apply(e, t));
320
+ process.env.NODE_ENV !== "production" && (X.displayName = "Alert");
321
+ function we(e, o, t) {
322
+ return o = G(o), pe(e, ue() ? Reflect.construct(o, t || [], G(e).constructor) : o.apply(e, t));
323
323
  }
324
- let Re = /* @__PURE__ */ function(e) {
324
+ let Ze = /* @__PURE__ */ function(e) {
325
325
  function o() {
326
326
  var t;
327
- return fe(this, o), t = He(this, o, arguments), t.state = {
327
+ return fe(this, o), t = we(this, o, arguments), t.state = {
328
328
  error: void 0,
329
329
  info: {
330
330
  componentStack: ""
@@ -345,17 +345,17 @@ let Re = /* @__PURE__ */ function(e) {
345
345
  const {
346
346
  message: n,
347
347
  description: r,
348
- id: c,
348
+ id: i,
349
349
  children: l
350
350
  } = this.props, {
351
351
  error: d,
352
352
  info: u
353
353
  } = this.state, m = (u == null ? void 0 : u.componentStack) || null, g = typeof n > "u" ? (d || "").toString() : n, b = typeof r > "u" ? m : r;
354
- return d ? /* @__PURE__ */ i.createElement(N, {
355
- id: c,
354
+ return d ? /* @__PURE__ */ a.createElement(X, {
355
+ id: i,
356
356
  type: "error",
357
357
  message: g,
358
- description: /* @__PURE__ */ i.createElement("pre", {
358
+ description: /* @__PURE__ */ a.createElement("pre", {
359
359
  style: {
360
360
  fontSize: "0.9em",
361
361
  overflowX: "auto"
@@ -364,13 +364,13 @@ let Re = /* @__PURE__ */ function(e) {
364
364
  }) : l;
365
365
  }
366
366
  }]);
367
- }(i.Component);
368
- const Z = N;
369
- Z.ErrorBoundary = Re;
370
- function Oe() {
367
+ }(a.Component);
368
+ const z = X;
369
+ z.ErrorBoundary = Ze;
370
+ function Ee() {
371
371
  return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
372
372
  }
373
- const Xe = /* @__PURE__ */ te(Z, process.env.NODE_ENV === "production" ? {
373
+ const Re = /* @__PURE__ */ te(z, process.env.NODE_ENV === "production" ? {
374
374
  target: "e17981h30"
375
375
  } : {
376
376
  target: "e17981h30",
@@ -380,9 +380,9 @@ const Xe = /* @__PURE__ */ te(Z, process.env.NODE_ENV === "production" ? {
380
380
  styles: "padding:var(--gap-md) var(--gap-lg);background-color:var(--color-surface-base-primary);border:1px solid var(--color-border-tertiary);border-radius:var(--radius-md);box-shadow:var(--shadow-alert);.ant-alert-icon{margin-right:var(--gap-4xs);font-size:24px;}.ant-alert-message{font:var(--font-subheading-xl);color:var(--color-text-primary);&:not(:last-child){margin-bottom:var(--gap-3xs);}}.ant-alert-description{font:var(--font-body-regular-m);color:var(--color-text-primary);}.ant-alert-close-icon button svg{width:14px;height:14px;fill:var(--color-icon-tertiary);}svg{width:1em;height:1em;fill:currentColor;}"
381
381
  } : {
382
382
  name: "1osgt02",
383
- styles: "padding:var(--gap-md) var(--gap-lg);background-color:var(--color-surface-base-primary);border:1px solid var(--color-border-tertiary);border-radius:var(--radius-md);box-shadow:var(--shadow-alert);.ant-alert-icon{margin-right:var(--gap-4xs);font-size:24px;}.ant-alert-message{font:var(--font-subheading-xl);color:var(--color-text-primary);&:not(:last-child){margin-bottom:var(--gap-3xs);}}.ant-alert-description{font:var(--font-body-regular-m);color:var(--color-text-primary);}.ant-alert-close-icon button svg{width:14px;height:14px;fill:var(--color-icon-tertiary);}svg{width:1em;height:1em;fill:currentColor;}/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkM6L1VzZXJzL2tpcmlsbC9EZXNrdG9wL3dvcmsvZnNrL2Rlc2lnbi1zeXN0ZW0vZnJvbnRlbmQvc3JjL2NvbXBvbmVudHMvQWxlcnQvQWxlcnQuc3R5bGVzLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFHd0MiLCJmaWxlIjoiQzovVXNlcnMva2lyaWxsL0Rlc2t0b3Avd29yay9mc2svZGVzaWduLXN5c3RlbS9mcm9udGVuZC9zcmMvY29tcG9uZW50cy9BbGVydC9BbGVydC5zdHlsZXMudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHN0eWxlZCBmcm9tIFwiQGVtb3Rpb24vc3R5bGVkXCJcbmltcG9ydCBBbGVydCBmcm9tIFwiYW50ZC9lcy9hbGVydFwiXG5cbmV4cG9ydCBjb25zdCBTdHlsZWRBbGVydCA9IHN0eWxlZChBbGVydClgXG4gIHBhZGRpbmc6IHZhcigtLWdhcC1tZCkgdmFyKC0tZ2FwLWxnKTtcblxuICBiYWNrZ3JvdW5kLWNvbG9yOiB2YXIoLS1jb2xvci1zdXJmYWNlLWJhc2UtcHJpbWFyeSk7XG4gIGJvcmRlcjogMXB4IHNvbGlkIHZhcigtLWNvbG9yLWJvcmRlci10ZXJ0aWFyeSk7XG4gIGJvcmRlci1yYWRpdXM6IHZhcigtLXJhZGl1cy1tZCk7XG4gIGJveC1zaGFkb3c6IHZhcigtLXNoYWRvdy1hbGVydCk7XG5cbiAgLmFudC1hbGVydC1pY29uIHtcbiAgICBtYXJnaW4tcmlnaHQ6IHZhcigtLWdhcC00eHMpO1xuXG4gICAgZm9udC1zaXplOiAyNHB4O1xuICB9XG5cbiAgLmFudC1hbGVydC1tZXNzYWdlIHtcbiAgICBmb250OiB2YXIoLS1mb250LXN1YmhlYWRpbmcteGwpO1xuICAgIGNvbG9yOiB2YXIoLS1jb2xvci10ZXh0LXByaW1hcnkpO1xuXG4gICAgJjpub3QoOmxhc3QtY2hpbGQpIHtcbiAgICAgIG1hcmdpbi1ib3R0b206IHZhcigtLWdhcC0zeHMpO1xuICAgIH1cbiAgfVxuXG4gIC5hbnQtYWxlcnQtZGVzY3JpcHRpb24ge1xuICAgIGZvbnQ6IHZhcigtLWZvbnQtYm9keS1yZWd1bGFyLW0pO1xuICAgIGNvbG9yOiB2YXIoLS1jb2xvci10ZXh0LXByaW1hcnkpO1xuICB9XG5cbiAgLmFudC1hbGVydC1jbG9zZS1pY29uIGJ1dHRvbiBzdmcge1xuICAgIHdpZHRoOiAxNHB4O1xuICAgIGhlaWdodDogMTRweDtcblxuICAgIGZpbGw6IHZhcigtLWNvbG9yLWljb24tdGVydGlhcnkpO1xuICB9XG5cbiAgc3ZnIHtcbiAgICB3aWR0aDogMWVtO1xuICAgIGhlaWdodDogMWVtO1xuXG4gICAgZmlsbDogY3VycmVudENvbG9yO1xuICB9XG5gXG4iXX0= */",
384
- toString: Oe
385
- }), Pe = (e) => /* @__PURE__ */ G(Xe, { closeIcon: /* @__PURE__ */ G(oe, { type: "link-secondary", size: "xs", icon: /* @__PURE__ */ G(ee, {}) }), ...e });
383
+ styles: "padding:var(--gap-md) var(--gap-lg);background-color:var(--color-surface-base-primary);border:1px solid var(--color-border-tertiary);border-radius:var(--radius-md);box-shadow:var(--shadow-alert);.ant-alert-icon{margin-right:var(--gap-4xs);font-size:24px;}.ant-alert-message{font:var(--font-subheading-xl);color:var(--color-text-primary);&:not(:last-child){margin-bottom:var(--gap-3xs);}}.ant-alert-description{font:var(--font-body-regular-m);color:var(--color-text-primary);}.ant-alert-close-icon button svg{width:14px;height:14px;fill:var(--color-icon-tertiary);}svg{width:1em;height:1em;fill:currentColor;}/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkM6L1VzZXJzL2tpcmlsL0Rlc2t0b3Avd29yay9mc2svZGVzaWduLXN5c3RlbS9mcm9udGVuZC9zcmMvY29tcG9uZW50cy9BbGVydC9BbGVydC5zdHlsZXMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUd3QyIsImZpbGUiOiJDOi9Vc2Vycy9raXJpbC9EZXNrdG9wL3dvcmsvZnNrL2Rlc2lnbi1zeXN0ZW0vZnJvbnRlbmQvc3JjL2NvbXBvbmVudHMvQWxlcnQvQWxlcnQuc3R5bGVzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBzdHlsZWQgZnJvbSBcIkBlbW90aW9uL3N0eWxlZFwiXG5pbXBvcnQgQWxlcnQgZnJvbSBcImFudGQvZXMvYWxlcnRcIlxuXG5leHBvcnQgY29uc3QgU3R5bGVkQWxlcnQgPSBzdHlsZWQoQWxlcnQpYFxuICBwYWRkaW5nOiB2YXIoLS1nYXAtbWQpIHZhcigtLWdhcC1sZyk7XG5cbiAgYmFja2dyb3VuZC1jb2xvcjogdmFyKC0tY29sb3Itc3VyZmFjZS1iYXNlLXByaW1hcnkpO1xuICBib3JkZXI6IDFweCBzb2xpZCB2YXIoLS1jb2xvci1ib3JkZXItdGVydGlhcnkpO1xuICBib3JkZXItcmFkaXVzOiB2YXIoLS1yYWRpdXMtbWQpO1xuICBib3gtc2hhZG93OiB2YXIoLS1zaGFkb3ctYWxlcnQpO1xuXG4gIC5hbnQtYWxlcnQtaWNvbiB7XG4gICAgbWFyZ2luLXJpZ2h0OiB2YXIoLS1nYXAtNHhzKTtcblxuICAgIGZvbnQtc2l6ZTogMjRweDtcbiAgfVxuXG4gIC5hbnQtYWxlcnQtbWVzc2FnZSB7XG4gICAgZm9udDogdmFyKC0tZm9udC1zdWJoZWFkaW5nLXhsKTtcbiAgICBjb2xvcjogdmFyKC0tY29sb3ItdGV4dC1wcmltYXJ5KTtcblxuICAgICY6bm90KDpsYXN0LWNoaWxkKSB7XG4gICAgICBtYXJnaW4tYm90dG9tOiB2YXIoLS1nYXAtM3hzKTtcbiAgICB9XG4gIH1cblxuICAuYW50LWFsZXJ0LWRlc2NyaXB0aW9uIHtcbiAgICBmb250OiB2YXIoLS1mb250LWJvZHktcmVndWxhci1tKTtcbiAgICBjb2xvcjogdmFyKC0tY29sb3ItdGV4dC1wcmltYXJ5KTtcbiAgfVxuXG4gIC5hbnQtYWxlcnQtY2xvc2UtaWNvbiBidXR0b24gc3ZnIHtcbiAgICB3aWR0aDogMTRweDtcbiAgICBoZWlnaHQ6IDE0cHg7XG5cbiAgICBmaWxsOiB2YXIoLS1jb2xvci1pY29uLXRlcnRpYXJ5KTtcbiAgfVxuXG4gIHN2ZyB7XG4gICAgd2lkdGg6IDFlbTtcbiAgICBoZWlnaHQ6IDFlbTtcblxuICAgIGZpbGw6IGN1cnJlbnRDb2xvcjtcbiAgfVxuYFxuIl19 */",
384
+ toString: Ee
385
+ }), Te = (e) => /* @__PURE__ */ S(Re, { closeIcon: /* @__PURE__ */ S(oe, { type: "link-secondary", size: "xs", icon: /* @__PURE__ */ S(ee, {}) }), ...e });
386
386
  export {
387
- Pe as A
387
+ Te as A
388
388
  };