@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/antd.esm.js
CHANGED
|
@@ -4017,13 +4017,13 @@ function InnerConfigProvider(props) {
|
|
|
4017
4017
|
const app = useAppContext();
|
|
4018
4018
|
const actions = React.useMemo(
|
|
4019
4019
|
() => ({
|
|
4020
|
-
showNotification: (
|
|
4021
|
-
|
|
4022
|
-
|
|
4023
|
-
|
|
4024
|
-
|
|
4025
|
-
|
|
4026
|
-
})
|
|
4020
|
+
showNotification: (type, message2, description, duration, placement) => {
|
|
4021
|
+
app.notification[type != null ? type : "info"]({
|
|
4022
|
+
message: message2 == null ? void 0 : message2.toString(),
|
|
4023
|
+
description: description == null ? void 0 : description.toString(),
|
|
4024
|
+
duration,
|
|
4025
|
+
placement
|
|
4026
|
+
});
|
|
4027
4027
|
},
|
|
4028
4028
|
hideNotifications: () => {
|
|
4029
4029
|
app.notification.destroy();
|
|
@@ -4427,43 +4427,59 @@ const registerConfigProvider = makeRegisterGlobalContext(
|
|
|
4427
4427
|
}
|
|
4428
4428
|
}
|
|
4429
4429
|
}, {
|
|
4430
|
-
|
|
4430
|
+
globalActions: {
|
|
4431
4431
|
showNotification: {
|
|
4432
4432
|
displayName: "Show notification",
|
|
4433
|
-
parameters:
|
|
4434
|
-
|
|
4435
|
-
|
|
4436
|
-
|
|
4437
|
-
|
|
4433
|
+
parameters: [
|
|
4434
|
+
{
|
|
4435
|
+
name: "type",
|
|
4436
|
+
type: {
|
|
4437
|
+
type: "choice",
|
|
4438
|
+
options: ["success", "error", "info", "warning"],
|
|
4439
|
+
defaultValue: "info"
|
|
4440
|
+
}
|
|
4438
4441
|
},
|
|
4439
|
-
|
|
4440
|
-
|
|
4441
|
-
|
|
4442
|
+
{
|
|
4443
|
+
name: "message",
|
|
4444
|
+
type: {
|
|
4445
|
+
type: "string",
|
|
4446
|
+
defaultValue: "A message for you!"
|
|
4447
|
+
}
|
|
4442
4448
|
},
|
|
4443
|
-
|
|
4444
|
-
|
|
4445
|
-
|
|
4449
|
+
{
|
|
4450
|
+
name: "description",
|
|
4451
|
+
type: {
|
|
4452
|
+
type: "string",
|
|
4453
|
+
defaultValue: "Would you like to learn more?"
|
|
4454
|
+
}
|
|
4446
4455
|
},
|
|
4447
|
-
|
|
4448
|
-
|
|
4449
|
-
|
|
4456
|
+
{
|
|
4457
|
+
name: "duration",
|
|
4458
|
+
type: {
|
|
4459
|
+
type: "number",
|
|
4460
|
+
defaultValueHint: 5
|
|
4461
|
+
}
|
|
4450
4462
|
},
|
|
4451
|
-
|
|
4452
|
-
|
|
4453
|
-
|
|
4454
|
-
"
|
|
4455
|
-
|
|
4456
|
-
|
|
4457
|
-
|
|
4458
|
-
|
|
4459
|
-
|
|
4460
|
-
|
|
4461
|
-
|
|
4463
|
+
{
|
|
4464
|
+
name: "placement",
|
|
4465
|
+
type: {
|
|
4466
|
+
type: "choice",
|
|
4467
|
+
options: [
|
|
4468
|
+
"top",
|
|
4469
|
+
"topLeft",
|
|
4470
|
+
"topRight",
|
|
4471
|
+
"bottom",
|
|
4472
|
+
"bottomLeft",
|
|
4473
|
+
"bottomRight"
|
|
4474
|
+
],
|
|
4475
|
+
defaultValueHint: "topRight"
|
|
4476
|
+
}
|
|
4462
4477
|
}
|
|
4463
|
-
|
|
4478
|
+
]
|
|
4464
4479
|
},
|
|
4465
4480
|
hideNotifications: {
|
|
4466
|
-
displayName: "Hide notifications"
|
|
4481
|
+
displayName: "Hide notifications",
|
|
4482
|
+
parameters: []
|
|
4467
4483
|
}
|
|
4468
4484
|
}
|
|
4469
4485
|
}), {
|
|
@@ -6444,11 +6460,13 @@ function AntdPopover(props) {
|
|
|
6444
6460
|
const _a = props, {
|
|
6445
6461
|
overlayClassName,
|
|
6446
6462
|
popoverScopeClassName,
|
|
6463
|
+
defaultStylesClassName,
|
|
6447
6464
|
contentText,
|
|
6448
6465
|
content
|
|
6449
6466
|
} = _a, rest = __objRest$7(_a, [
|
|
6450
6467
|
"overlayClassName",
|
|
6451
6468
|
"popoverScopeClassName",
|
|
6469
|
+
"defaultStylesClassName",
|
|
6452
6470
|
"contentText",
|
|
6453
6471
|
"content"
|
|
6454
6472
|
]);
|
|
@@ -6456,7 +6474,7 @@ function AntdPopover(props) {
|
|
|
6456
6474
|
Popover,
|
|
6457
6475
|
__spreadValues$b({
|
|
6458
6476
|
content: content || contentText,
|
|
6459
|
-
overlayClassName: `${overlayClassName} ${popoverScopeClassName}`
|
|
6477
|
+
overlayClassName: `${overlayClassName} ${popoverScopeClassName} ${defaultStylesClassName}`
|
|
6460
6478
|
}, rest)
|
|
6461
6479
|
);
|
|
6462
6480
|
}
|
|
@@ -6571,6 +6589,9 @@ function registerPopover(loader) {
|
|
|
6571
6589
|
type: "eventHandler",
|
|
6572
6590
|
argTypes: [{ name: "open", type: "boolean" }],
|
|
6573
6591
|
advanced: true
|
|
6592
|
+
},
|
|
6593
|
+
defaultStylesClassName: {
|
|
6594
|
+
type: "themeResetClass"
|
|
6574
6595
|
}
|
|
6575
6596
|
},
|
|
6576
6597
|
states: {
|