fsk-design-system 1.0.16 → 1.0.18
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.
- package/dist/{Alert-CGNs1E7Z.js → Alert-CyuNF763.js} +118 -118
- package/dist/{Avatar-CuDuvGNh.js → Avatar-BZijVRI_.js} +141 -141
- package/dist/Badge-BOdGJZe4.js +692 -0
- package/dist/{Breadcrumb-CdANoxvR.js → Breadcrumb-DiAURlsb.js} +108 -108
- package/dist/Button-B9TgAsSK.js +113 -0
- package/dist/Card-CfyoTd7h.js +121 -0
- package/dist/{Carousel-DI8dimyj.js → Carousel-VP2X7jvQ.js} +353 -353
- package/dist/Cascader.form-nbbJB-JO.js +1207 -0
- package/dist/Checkbox.form-0O6VC-qG.js +125 -0
- package/dist/{Collapse-DyTr-nYI.js → Collapse-DIx06FCE.js} +133 -133
- package/dist/Comment-CgCgKQws.js +218 -0
- package/dist/ControlWrapper-BlB17VkE.js +133 -0
- package/dist/{CountrySelect-BAoqn-1R.js → CountrySelect-CSNdz2Pf.js} +26 -26
- package/dist/{DatePicker.form-BhmKRJ8C.js → DatePicker.form-DEDTpFCe.js} +1129 -1129
- package/dist/{Divider-O2sYaAgG.js → Divider-BW2Ul4OH.js} +32 -32
- package/dist/{Dragger.form-iWutnYD0.js → Dragger.form-C3dKRjqV.js} +409 -409
- package/dist/Drawer-BwXhCPEm.js +744 -0
- package/dist/Dropdown-C1zlulRL.js +49 -0
- package/dist/{Empty-D08Vpl1S.js → Empty-BIpPjDi_.js} +3 -3
- package/dist/FileButton-Cm9i0xEF.js +70 -0
- package/dist/Form-ghVKEqRD.js +165 -0
- package/dist/Grid-Be4EG_ON.js +17 -0
- package/dist/Header-BVkdSDJO.js +160 -0
- package/dist/Hint-88QV8H1D.js +23 -0
- package/dist/Input.form-CoUh7jta.js +510 -0
- package/dist/InputNumber.form-D7w3l0l7.js +1243 -0
- package/dist/Layout-HpRAjApn.js +126 -0
- package/dist/LinkCard-CaQziIVi.js +108 -0
- package/dist/{Modal-DyKIlW3w.js → Modal-2G6O6qrW.js} +197 -197
- package/dist/Notification-Bkycs-s_.js +52 -0
- package/dist/Notifications-DPJv6MT3.js +44 -0
- package/dist/{Pagination-CzF3KzKQ.js → Pagination-6hLahKo6.js} +1 -1
- package/dist/{Plug-CdYkNyW1.js → Plug-CwqBLM0c.js} +15 -15
- package/dist/Popover-Cp1-DvYC.js +26 -0
- package/dist/{Progress-LdQutlLe.js → Progress-O8h7ZQI1.js} +6 -6
- package/dist/Radio.form-Cfwyo-KT.js +145 -0
- package/dist/Search.form-Va7M7JMr.js +58 -0
- package/dist/Select.form-C8OU4-tO.js +136 -0
- package/dist/Skeleton-CVw8LtSq.js +58 -0
- package/dist/Support-DCfc17qh.js +92 -0
- package/dist/Switch.form-zKu5wwbP.js +506 -0
- package/dist/{Table-BbESyiuM.js → Table-BolrfU-t.js} +535 -535
- package/dist/Tabs-DLulk8oo.js +1939 -0
- package/dist/Tag-Dj70_SU1.js +318 -0
- package/dist/TextArea.form-DoH1jpkA.js +83 -0
- package/dist/Tooltip-uV36Ixxz.js +54 -0
- package/dist/Upload.form-BWtIVfxR.js +38 -0
- package/dist/UserMenu-BAmvpie1.js +129 -0
- package/dist/components/ActionMenu/index.js +33 -33
- package/dist/components/Alert/index.js +1 -1
- package/dist/components/Avatar/index.js +1 -1
- package/dist/components/Badge/index.js +1 -1
- package/dist/components/Breadcrumb/index.js +1 -1
- package/dist/components/Button/Button.test.d.ts +1 -0
- package/dist/components/Button/index.js +1 -1
- package/dist/components/Card/LinkCard/index.js +1 -1
- package/dist/components/Card/index.js +1 -1
- package/dist/components/Carousel/index.js +1 -1
- package/dist/components/Cascader/index.js +1 -1
- package/dist/components/Checkbox/index.js +1 -1
- package/dist/components/Collapse/index.js +1 -1
- package/dist/components/Comment/Form/index.js +1 -1
- package/dist/components/Comment/index.js +1 -1
- package/dist/components/ControlWrapper/index.js +1 -1
- package/dist/components/DatePicker/index.js +1 -1
- package/dist/components/Divider/index.js +1 -1
- package/dist/components/Drawer/Drawer.test.d.ts +1 -0
- package/dist/components/Drawer/index.js +1 -1
- package/dist/components/Dropdown/index.js +1 -1
- package/dist/components/Empty/index.js +1 -1
- package/dist/components/Grid/index.js +1 -1
- package/dist/components/Hint/Hint.test.d.ts +1 -0
- package/dist/components/Hint/index.js +1 -1
- package/dist/components/Input/Input.test.d.ts +1 -0
- package/dist/components/Input/index.js +1 -1
- package/dist/components/InputNumber/index.js +1 -1
- package/dist/components/Layout/Header/Notifications/index.js +1 -1
- package/dist/components/Layout/Header/Support/index.js +1 -1
- package/dist/components/Layout/Header/index.js +1 -1
- package/dist/components/Layout/index.js +1 -1
- package/dist/components/Modal/Modal.test.d.ts +1 -0
- package/dist/components/Modal/index.js +1 -1
- package/dist/components/Notification/index.js +2 -2
- package/dist/components/Pagination/index.js +1 -1
- package/dist/components/PhoneInput/CountrySelect/index.js +1 -1
- package/dist/components/PhoneInput/index.js +2 -2
- package/dist/components/Plug/index.js +1 -1
- package/dist/components/Popover/index.js +1 -1
- package/dist/components/Progress/index.js +1 -1
- package/dist/components/Radio/index.js +1 -1
- package/dist/components/Search/index.js +1 -1
- package/dist/components/Select/index.js +1 -1
- package/dist/components/Skeleton/index.js +1 -1
- package/dist/components/Switch/Switch.test.d.ts +1 -0
- package/dist/components/Switch/index.js +1 -1
- package/dist/components/Table/index.js +1 -1
- package/dist/components/Tabs/index.js +1 -1
- package/dist/components/Tag/index.js +1 -1
- package/dist/components/TextArea/TextArea.test.d.ts +1 -0
- package/dist/components/TextArea/index.js +1 -1
- package/dist/components/Tooltip/Tooltip.test.d.ts +1 -0
- package/dist/components/Tooltip/index.js +1 -1
- package/dist/components/Upload/Dragger/index.js +1 -1
- package/dist/components/Upload/FileButton/index.js +1 -1
- package/dist/components/Upload/index.js +1 -1
- package/dist/components/UserMenu/index.js +1 -1
- package/dist/components/index.js +40 -40
- package/dist/index.js +40 -40
- package/dist/setupTests.d.ts +0 -0
- package/dist/{useNotification-DZmgFYiQ.js → useNotification-BuM7gOxh.js} +1 -1
- package/package.json +7 -2
- package/dist/Badge-C46NtA97.js +0 -692
- package/dist/Button-Bt34w4fJ.js +0 -113
- package/dist/Card-DbmxvQ6R.js +0 -121
- package/dist/Cascader.form-kIlOSnAa.js +0 -1207
- package/dist/Checkbox.form-BAQvotGg.js +0 -125
- package/dist/Comment-BcSlD_WX.js +0 -218
- package/dist/ControlWrapper-B9yH9JQL.js +0 -133
- package/dist/Drawer-Kz7Jhmpn.js +0 -744
- package/dist/Dropdown-DE_-5uPD.js +0 -49
- package/dist/FileButton-Cwyn01XX.js +0 -70
- package/dist/Form-DPFrQuEa.js +0 -165
- package/dist/Grid-BA0qqtKk.js +0 -17
- package/dist/Header-Duj1MPr7.js +0 -160
- package/dist/Hint-D2ARoJcf.js +0 -23
- package/dist/Input.form-CGqrfa89.js +0 -510
- package/dist/InputNumber.form-971uipC6.js +0 -1243
- package/dist/Layout-Bi6CxQMm.js +0 -126
- package/dist/LinkCard-BkoVdpyj.js +0 -108
- package/dist/Notification-YJzZgTWs.js +0 -52
- package/dist/Notifications-DRK3J940.js +0 -44
- package/dist/Popover-DY7IUutv.js +0 -26
- package/dist/Radio.form-DV6vu_jc.js +0 -145
- package/dist/Search.form-Gyaevts5.js +0 -58
- package/dist/Select.form-DJpyLdEn.js +0 -136
- package/dist/Skeleton-DLoF5WWi.js +0 -58
- package/dist/Support-BoZIJOnF.js +0 -92
- package/dist/Switch.form-B4PujVMU.js +0 -506
- package/dist/Tabs-CCAllZ5F.js +0 -1939
- package/dist/Tag-BpDch8qp.js +0 -318
- package/dist/TextArea.form-Bu9PUCnQ.js +0 -83
- package/dist/Tooltip-CPOX72aN.js +0 -54
- package/dist/Upload.form-BHoeRKa4.js +0 -38
- package/dist/UserMenu-d-6kvmei.js +0 -129
|
@@ -1,47 +1,47 @@
|
|
|
1
|
-
import { j as
|
|
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-
|
|
3
|
+
import { B as oe } from "./Button-B9TgAsSK.js";
|
|
4
4
|
import { c as te } from "./emotion-styled-base.browser.esm-B5hPI6jF.js";
|
|
5
|
-
import * as
|
|
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
|
|
9
|
-
import { R as
|
|
10
|
-
import { R as
|
|
11
|
-
import { g as se, e as le, b as
|
|
12
|
-
import { b as
|
|
13
|
-
import { p as
|
|
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
|
|
16
|
-
const
|
|
15
|
+
import { d as ye } from "./warning-CzsCZOlq.js";
|
|
16
|
+
const h = (e, o, t, n, r) => ({
|
|
17
17
|
background: e,
|
|
18
|
-
border: `${
|
|
18
|
+
border: `${j(n.lineWidth)} ${n.lineType} ${o}`,
|
|
19
19
|
[`${r}-icon`]: {
|
|
20
20
|
color: t
|
|
21
21
|
}
|
|
22
|
-
}),
|
|
22
|
+
}), xe = (e) => {
|
|
23
23
|
const {
|
|
24
24
|
componentCls: o,
|
|
25
25
|
motionDurationSlow: t,
|
|
26
26
|
marginXS: n,
|
|
27
27
|
marginSM: r,
|
|
28
|
-
fontSize:
|
|
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:
|
|
35
|
+
colorTextHeading: v,
|
|
36
36
|
withDescriptionPadding: C,
|
|
37
|
-
defaultPadding:
|
|
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:
|
|
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:
|
|
60
|
+
fontSize: i,
|
|
61
61
|
lineHeight: d
|
|
62
62
|
},
|
|
63
63
|
"&-message": {
|
|
64
|
-
color:
|
|
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:
|
|
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
|
-
},
|
|
106
|
+
}, he = (e) => {
|
|
107
107
|
const {
|
|
108
108
|
componentCls: o,
|
|
109
109
|
colorSuccess: t,
|
|
110
110
|
colorSuccessBorder: n,
|
|
111
111
|
colorSuccessBg: r,
|
|
112
|
-
colorWarning:
|
|
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:
|
|
119
|
+
colorInfoBorder: v,
|
|
120
120
|
colorInfoBg: C
|
|
121
121
|
} = e;
|
|
122
122
|
return {
|
|
123
123
|
[o]: {
|
|
124
|
-
"&-success":
|
|
125
|
-
"&-info":
|
|
126
|
-
"&-warning":
|
|
127
|
-
"&-error": Object.assign(Object.assign({},
|
|
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
|
-
},
|
|
135
|
+
}, Se = (e) => {
|
|
136
136
|
const {
|
|
137
137
|
componentCls: o,
|
|
138
138
|
iconCls: t,
|
|
139
139
|
motionDurationMid: n,
|
|
140
140
|
marginXS: r,
|
|
141
|
-
fontSizeIcon:
|
|
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:
|
|
155
|
-
lineHeight:
|
|
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
|
-
},
|
|
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
|
-
}),
|
|
182
|
-
var
|
|
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
|
|
189
|
+
const We = {
|
|
190
190
|
success: ne,
|
|
191
|
-
info:
|
|
191
|
+
info: ce,
|
|
192
192
|
error: re,
|
|
193
|
-
warning:
|
|
194
|
-
},
|
|
193
|
+
warning: ie
|
|
194
|
+
}, $e = (e) => {
|
|
195
195
|
const {
|
|
196
196
|
icon: o,
|
|
197
197
|
prefixCls: t,
|
|
198
198
|
type: n
|
|
199
|
-
} = e, r =
|
|
200
|
-
return o ? Ce(o, /* @__PURE__ */
|
|
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:
|
|
204
|
-
})) : /* @__PURE__ */
|
|
203
|
+
className: B(`${t}-icon`, o.props.className)
|
|
204
|
+
})) : /* @__PURE__ */ a.createElement(r, {
|
|
205
205
|
className: `${t}-icon`
|
|
206
206
|
});
|
|
207
|
-
},
|
|
207
|
+
}, Ne = (e) => {
|
|
208
208
|
const {
|
|
209
209
|
isClosable: o,
|
|
210
210
|
prefixCls: t,
|
|
211
211
|
closeIcon: n,
|
|
212
212
|
handleClose: r,
|
|
213
|
-
ariaProps:
|
|
214
|
-
} = e, l = n === !0 || n === void 0 ? /* @__PURE__ */
|
|
215
|
-
return o ? /* @__PURE__ */
|
|
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
|
-
},
|
|
221
|
-
},
|
|
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:
|
|
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:
|
|
233
|
+
afterClose: v,
|
|
234
234
|
showIcon: C,
|
|
235
|
-
closable:
|
|
236
|
-
closeText:
|
|
235
|
+
closable: c,
|
|
236
|
+
closeText: y,
|
|
237
237
|
closeIcon: f,
|
|
238
|
-
action:
|
|
239
|
-
id:
|
|
240
|
-
} = e,
|
|
241
|
-
process.env.NODE_ENV !== "production" &&
|
|
242
|
-
const
|
|
243
|
-
|
|
244
|
-
nativeElement:
|
|
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:
|
|
248
|
-
direction:
|
|
249
|
-
closable:
|
|
250
|
-
closeIcon:
|
|
251
|
-
className:
|
|
252
|
-
style:
|
|
253
|
-
} = de("alert"), s =
|
|
254
|
-
var
|
|
255
|
-
|
|
256
|
-
},
|
|
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`]: !
|
|
259
|
-
[`${s}-banner`]: !!
|
|
260
|
-
[`${s}-rtl`]:
|
|
261
|
-
},
|
|
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
|
-
}),
|
|
265
|
-
const p =
|
|
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:
|
|
268
|
+
closeIcon: x
|
|
269
269
|
} = p;
|
|
270
|
-
return
|
|
270
|
+
return O(p, ["closeIcon"]);
|
|
271
271
|
}
|
|
272
272
|
return {};
|
|
273
|
-
}, [
|
|
274
|
-
return
|
|
275
|
-
visible:
|
|
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:
|
|
283
|
-
}, (p,
|
|
282
|
+
onLeaveEnd: v
|
|
283
|
+
}, (p, x) => {
|
|
284
284
|
let {
|
|
285
|
-
className:
|
|
285
|
+
className: R,
|
|
286
286
|
style: q
|
|
287
287
|
} = p;
|
|
288
|
-
return /* @__PURE__ */
|
|
289
|
-
id:
|
|
290
|
-
ref: me(
|
|
291
|
-
"data-show":
|
|
292
|
-
className:
|
|
293
|
-
style: Object.assign(Object.assign(Object.assign({},
|
|
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
|
-
},
|
|
298
|
+
}, P), E ? /* @__PURE__ */ a.createElement($e, {
|
|
299
299
|
description: t,
|
|
300
300
|
icon: e.icon,
|
|
301
301
|
prefixCls: s,
|
|
302
|
-
type:
|
|
303
|
-
}) : null, /* @__PURE__ */
|
|
302
|
+
type: Z
|
|
303
|
+
}) : null, /* @__PURE__ */ a.createElement("div", {
|
|
304
304
|
className: `${s}-content`
|
|
305
|
-
}, r ? /* @__PURE__ */
|
|
305
|
+
}, r ? /* @__PURE__ */ a.createElement("div", {
|
|
306
306
|
className: `${s}-message`
|
|
307
|
-
}, r) : null, t ? /* @__PURE__ */
|
|
307
|
+
}, r) : null, t ? /* @__PURE__ */ a.createElement("div", {
|
|
308
308
|
className: `${s}-description`
|
|
309
|
-
}, t) : null),
|
|
309
|
+
}, t) : null), W ? /* @__PURE__ */ a.createElement("div", {
|
|
310
310
|
className: `${s}-action`
|
|
311
|
-
},
|
|
312
|
-
isClosable:
|
|
311
|
+
}, W) : null, /* @__PURE__ */ a.createElement(Ne, {
|
|
312
|
+
isClosable: _,
|
|
313
313
|
prefixCls: s,
|
|
314
|
-
closeIcon:
|
|
315
|
-
handleClose:
|
|
316
|
-
ariaProps:
|
|
314
|
+
closeIcon: K,
|
|
315
|
+
handleClose: T,
|
|
316
|
+
ariaProps: U
|
|
317
317
|
}));
|
|
318
318
|
}));
|
|
319
319
|
});
|
|
320
|
-
process.env.NODE_ENV !== "production" && (
|
|
321
|
-
function
|
|
322
|
-
return o =
|
|
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
|
|
324
|
+
let Ze = /* @__PURE__ */ function(e) {
|
|
325
325
|
function o() {
|
|
326
326
|
var t;
|
|
327
|
-
return fe(this, o), t =
|
|
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:
|
|
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__ */
|
|
355
|
-
id:
|
|
354
|
+
return d ? /* @__PURE__ */ a.createElement(X, {
|
|
355
|
+
id: i,
|
|
356
356
|
type: "error",
|
|
357
357
|
message: g,
|
|
358
|
-
description: /* @__PURE__ */
|
|
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
|
-
}(
|
|
368
|
-
const
|
|
369
|
-
|
|
370
|
-
function
|
|
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
|
|
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,
|
|
384
|
-
toString:
|
|
385
|
-
}),
|
|
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
|
-
|
|
387
|
+
Te as A
|
|
388
388
|
};
|