@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/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: (opts) => {
4021
- var _b, _c, _d;
4022
- const _a = opts, rest = __objRest$d(_a, ["type"]);
4023
- app.notification[(_b = opts.type) != null ? _b : "info"](__spreadProps$b(__spreadValues$j({}, rest), {
4024
- message: (_c = rest.message) == null ? void 0 : _c.toString(),
4025
- description: (_d = rest.description) == null ? void 0 : _d.toString()
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
- unstable__globalActions: {
4430
+ globalActions: {
4431
4431
  showNotification: {
4432
4432
  displayName: "Show notification",
4433
- parameters: {
4434
- type: {
4435
- type: "choice",
4436
- options: ["success", "error", "info", "warning"],
4437
- defaultValue: "info"
4433
+ parameters: [
4434
+ {
4435
+ name: "type",
4436
+ type: {
4437
+ type: "choice",
4438
+ options: ["success", "error", "info", "warning"],
4439
+ defaultValue: "info"
4440
+ }
4438
4441
  },
4439
- message: {
4440
- type: "string",
4441
- defaultValue: "A message for you!"
4442
+ {
4443
+ name: "message",
4444
+ type: {
4445
+ type: "string",
4446
+ defaultValue: "A message for you!"
4447
+ }
4442
4448
  },
4443
- description: {
4444
- type: "string",
4445
- defaultValue: "Would you like to learn more?"
4449
+ {
4450
+ name: "description",
4451
+ type: {
4452
+ type: "string",
4453
+ defaultValue: "Would you like to learn more?"
4454
+ }
4446
4455
  },
4447
- duration: {
4448
- type: "number",
4449
- defaultValueHint: 5
4456
+ {
4457
+ name: "duration",
4458
+ type: {
4459
+ type: "number",
4460
+ defaultValueHint: 5
4461
+ }
4450
4462
  },
4451
- placement: {
4452
- type: "choice",
4453
- options: [
4454
- "top",
4455
- "topLeft",
4456
- "topRight",
4457
- "bottom",
4458
- "bottomLeft",
4459
- "bottomRight"
4460
- ],
4461
- defaultValueHint: "topRight"
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: {