@zextras/carbonio-design-system 0.4.0-devel.1663244218709 → 0.4.0-devel.1663244858738

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.
@@ -33358,7 +33358,12 @@ const OptionalFooterContainer = styled__default["default"](Container).withConfig
33358
33358
  const ButtonContainer = styled__default["default"](Container).withConfig({
33359
33359
  displayName: "Modal__ButtonContainer",
33360
33360
  componentId: "sc-1lygj44-3"
33361
- })(["min-width:1px;flex-basis:auto;flex-grow:1;"]);
33361
+ })(["min-width:1px;flex-basis:auto;flex-grow:1;", ""], _ref3 => {
33362
+ let {
33363
+ $pushLeftFirstChild
33364
+ } = _ref3;
33365
+ return $pushLeftFirstChild && styled.css(["> *{&:first-child{margin-right:auto;}}"]);
33366
+ });
33362
33367
  const DismissButton = styled__default["default"](Button$1).withConfig({
33363
33368
  displayName: "Modal__DismissButton",
33364
33369
  componentId: "sc-1lygj44-4"
@@ -33368,7 +33373,7 @@ const ConfirmButton = styled__default["default"](Button$1).withConfig({
33368
33373
  componentId: "sc-1lygj44-5"
33369
33374
  })(["flex-basis:auto;min-width:100px;flex-shrink:1;"]);
33370
33375
 
33371
- const ModalFooter = _ref3 => {
33376
+ const ModalFooter = _ref4 => {
33372
33377
  let {
33373
33378
  type,
33374
33379
  centered,
@@ -33382,7 +33387,7 @@ const ModalFooter = _ref3 => {
33382
33387
  copyLabel,
33383
33388
  optionalFooter,
33384
33389
  onCopyClipboard
33385
- } = _ref3;
33390
+ } = _ref4;
33386
33391
  const secondaryButton = React.useMemo(() => {
33387
33392
  let button;
33388
33393
 
@@ -33407,25 +33412,26 @@ const ModalFooter = _ref3 => {
33407
33412
 
33408
33413
  return button;
33409
33414
  }, [type, onCopyClipboard, copyLabel, onSecondaryAction, secondaryActionLabel, dismissLabel, onClose]);
33410
- return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, optionalFooter && /*#__PURE__*/React__default["default"].createElement(OptionalFooterContainer, {
33411
- padding: centered ? {
33415
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, optionalFooter && centered && /*#__PURE__*/React__default["default"].createElement(OptionalFooterContainer, {
33416
+ padding: {
33412
33417
  bottom: 'large'
33413
- } : {
33414
- right: 'large'
33415
33418
  },
33416
33419
  orientation: "horizontal",
33417
33420
  mainAlignment: "flex-start"
33418
33421
  }, optionalFooter), /*#__PURE__*/React__default["default"].createElement(ButtonContainer, {
33419
33422
  orientation: "horizontal",
33420
- mainAlignment: centered ? 'center' : 'flex-end'
33421
- }, secondaryButton, (onConfirm || onClose) && /*#__PURE__*/React__default["default"].createElement(ConfirmButton, {
33423
+ mainAlignment: centered ? 'center' : 'flex-end',
33424
+ $pushLeftFirstChild: optionalFooter != null && !centered
33425
+ }, !centered && optionalFooter, !centered && /*#__PURE__*/React__default["default"].createElement(Padding, {
33426
+ right: "large"
33427
+ }), secondaryButton, (onConfirm || onClose) && /*#__PURE__*/React__default["default"].createElement(ConfirmButton, {
33422
33428
  color: confirmColor,
33423
33429
  onClick: onConfirm || onClose,
33424
33430
  label: confirmLabel
33425
33431
  })));
33426
33432
  };
33427
33433
 
33428
- const Modal = /*#__PURE__*/React__default["default"].forwardRef(function ModalFn(_ref4, ref) {
33434
+ const Modal = /*#__PURE__*/React__default["default"].forwardRef(function ModalFn(_ref5, ref) {
33429
33435
  let {
33430
33436
  background = 'gray6',
33431
33437
  type = 'default',
@@ -33450,7 +33456,7 @@ const Modal = /*#__PURE__*/React__default["default"].forwardRef(function ModalFn
33450
33456
  disablePortal = false,
33451
33457
  zIndex = 999,
33452
33458
  ...rest
33453
- } = _ref4;
33459
+ } = _ref5;
33454
33460
  const [delayedOpen, setDelayedOpen] = React.useState(false);
33455
33461
  const {
33456
33462
  windowObj
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zextras/carbonio-design-system",
3
- "version": "0.4.0-devel.1663244218709",
3
+ "version": "0.4.0-devel.1663244858738",
4
4
  "description": "An awesome UI for Zextras Projects.",
5
5
  "main": "dist/zapp-ui.bundle.js",
6
6
  "types": "dist/zapp-ui.bundle.d.ts",