pure-panel.js 794 B

1234567891011121314151617181920
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports.default = void 0;
  6. var _cssinjs = require("@ant-design/cssinjs");
  7. var _ = require(".");
  8. var _internal = require("../../theme/internal");
  9. var _default = exports.default = (0, _internal.genSubStyleComponent)(['Notification', 'PurePanel'], token => {
  10. const noticeCls = `${token.componentCls}-notice`;
  11. const notificationToken = (0, _.prepareNotificationToken)(token);
  12. return {
  13. [`${noticeCls}-pure-panel`]: Object.assign(Object.assign({}, (0, _.genNoticeStyle)(notificationToken)), {
  14. width: notificationToken.width,
  15. maxWidth: `calc(100vw - ${(0, _cssinjs.unit)(token.calc(notificationToken.notificationMarginEdge).mul(2).equal())})`,
  16. margin: 0
  17. })
  18. };
  19. }, _.prepareComponentToken);