@plasmicpkgs/antd5 0.0.194 → 0.0.196
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/.tsbuildinfo +1 -1
- package/dist/antd.esm.js +57 -36
- package/dist/antd.esm.js.map +1 -1
- package/dist/index.js +57 -36
- package/dist/index.js.map +1 -1
- package/dist/registerPopover.d.ts +2 -1
- package/package.json +5 -5
- package/skinny/registerConfigProvider.cjs.js +51 -35
- package/skinny/registerConfigProvider.cjs.js.map +1 -1
- package/skinny/registerConfigProvider.esm.js +51 -35
- package/skinny/registerConfigProvider.esm.js.map +1 -1
- package/skinny/registerPopover.cjs.js +7 -2
- package/skinny/registerPopover.cjs.js.map +1 -1
- package/skinny/registerPopover.d.ts +2 -1
- package/skinny/registerPopover.esm.js +7 -2
- package/skinny/registerPopover.esm.js.map +1 -1
package/dist/index.js
CHANGED
|
@@ -4034,13 +4034,13 @@ function InnerConfigProvider(props) {
|
|
|
4034
4034
|
const app = useAppContext();
|
|
4035
4035
|
const actions = React__default.default.useMemo(
|
|
4036
4036
|
() => ({
|
|
4037
|
-
showNotification: (
|
|
4038
|
-
|
|
4039
|
-
|
|
4040
|
-
|
|
4041
|
-
|
|
4042
|
-
|
|
4043
|
-
})
|
|
4037
|
+
showNotification: (type, message2, description, duration, placement) => {
|
|
4038
|
+
app.notification[type != null ? type : "info"]({
|
|
4039
|
+
message: message2 == null ? void 0 : message2.toString(),
|
|
4040
|
+
description: description == null ? void 0 : description.toString(),
|
|
4041
|
+
duration,
|
|
4042
|
+
placement
|
|
4043
|
+
});
|
|
4044
4044
|
},
|
|
4045
4045
|
hideNotifications: () => {
|
|
4046
4046
|
app.notification.destroy();
|
|
@@ -4444,43 +4444,59 @@ const registerConfigProvider = makeRegisterGlobalContext(
|
|
|
4444
4444
|
}
|
|
4445
4445
|
}
|
|
4446
4446
|
}, {
|
|
4447
|
-
|
|
4447
|
+
globalActions: {
|
|
4448
4448
|
showNotification: {
|
|
4449
4449
|
displayName: "Show notification",
|
|
4450
|
-
parameters:
|
|
4451
|
-
|
|
4452
|
-
|
|
4453
|
-
|
|
4454
|
-
|
|
4450
|
+
parameters: [
|
|
4451
|
+
{
|
|
4452
|
+
name: "type",
|
|
4453
|
+
type: {
|
|
4454
|
+
type: "choice",
|
|
4455
|
+
options: ["success", "error", "info", "warning"],
|
|
4456
|
+
defaultValue: "info"
|
|
4457
|
+
}
|
|
4455
4458
|
},
|
|
4456
|
-
|
|
4457
|
-
|
|
4458
|
-
|
|
4459
|
+
{
|
|
4460
|
+
name: "message",
|
|
4461
|
+
type: {
|
|
4462
|
+
type: "string",
|
|
4463
|
+
defaultValue: "A message for you!"
|
|
4464
|
+
}
|
|
4459
4465
|
},
|
|
4460
|
-
|
|
4461
|
-
|
|
4462
|
-
|
|
4466
|
+
{
|
|
4467
|
+
name: "description",
|
|
4468
|
+
type: {
|
|
4469
|
+
type: "string",
|
|
4470
|
+
defaultValue: "Would you like to learn more?"
|
|
4471
|
+
}
|
|
4463
4472
|
},
|
|
4464
|
-
|
|
4465
|
-
|
|
4466
|
-
|
|
4473
|
+
{
|
|
4474
|
+
name: "duration",
|
|
4475
|
+
type: {
|
|
4476
|
+
type: "number",
|
|
4477
|
+
defaultValueHint: 5
|
|
4478
|
+
}
|
|
4467
4479
|
},
|
|
4468
|
-
|
|
4469
|
-
|
|
4470
|
-
|
|
4471
|
-
"
|
|
4472
|
-
|
|
4473
|
-
|
|
4474
|
-
|
|
4475
|
-
|
|
4476
|
-
|
|
4477
|
-
|
|
4478
|
-
|
|
4480
|
+
{
|
|
4481
|
+
name: "placement",
|
|
4482
|
+
type: {
|
|
4483
|
+
type: "choice",
|
|
4484
|
+
options: [
|
|
4485
|
+
"top",
|
|
4486
|
+
"topLeft",
|
|
4487
|
+
"topRight",
|
|
4488
|
+
"bottom",
|
|
4489
|
+
"bottomLeft",
|
|
4490
|
+
"bottomRight"
|
|
4491
|
+
],
|
|
4492
|
+
defaultValueHint: "topRight"
|
|
4493
|
+
}
|
|
4479
4494
|
}
|
|
4480
|
-
|
|
4495
|
+
]
|
|
4481
4496
|
},
|
|
4482
4497
|
hideNotifications: {
|
|
4483
|
-
displayName: "Hide notifications"
|
|
4498
|
+
displayName: "Hide notifications",
|
|
4499
|
+
parameters: []
|
|
4484
4500
|
}
|
|
4485
4501
|
}
|
|
4486
4502
|
}), {
|
|
@@ -6461,11 +6477,13 @@ function AntdPopover(props) {
|
|
|
6461
6477
|
const _a = props, {
|
|
6462
6478
|
overlayClassName,
|
|
6463
6479
|
popoverScopeClassName,
|
|
6480
|
+
defaultStylesClassName,
|
|
6464
6481
|
contentText,
|
|
6465
6482
|
content
|
|
6466
6483
|
} = _a, rest = __objRest$7(_a, [
|
|
6467
6484
|
"overlayClassName",
|
|
6468
6485
|
"popoverScopeClassName",
|
|
6486
|
+
"defaultStylesClassName",
|
|
6469
6487
|
"contentText",
|
|
6470
6488
|
"content"
|
|
6471
6489
|
]);
|
|
@@ -6473,7 +6491,7 @@ function AntdPopover(props) {
|
|
|
6473
6491
|
antd.Popover,
|
|
6474
6492
|
__spreadValues$b({
|
|
6475
6493
|
content: content || contentText,
|
|
6476
|
-
overlayClassName: `${overlayClassName} ${popoverScopeClassName}`
|
|
6494
|
+
overlayClassName: `${overlayClassName} ${popoverScopeClassName} ${defaultStylesClassName}`
|
|
6477
6495
|
}, rest)
|
|
6478
6496
|
);
|
|
6479
6497
|
}
|
|
@@ -6588,6 +6606,9 @@ function registerPopover(loader) {
|
|
|
6588
6606
|
type: "eventHandler",
|
|
6589
6607
|
argTypes: [{ name: "open", type: "boolean" }],
|
|
6590
6608
|
advanced: true
|
|
6609
|
+
},
|
|
6610
|
+
defaultStylesClassName: {
|
|
6611
|
+
type: "themeResetClass"
|
|
6591
6612
|
}
|
|
6592
6613
|
},
|
|
6593
6614
|
states: {
|