@zextras/carbonio-design-system 4.2.0 → 4.2.1
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/CHANGELOG.md +7 -0
- package/dist/zapp-ui.bundle.d.ts +1 -1
- package/dist/zapp-ui.bundle.js +8 -30
- package/package.json +1 -1
- package/sonar-project.properties +10 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [4.2.1](https://github.com/Zextras/carbonio-design-system/compare/v4.2.0...v4.2.1) (2024-03-08)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* allow to disable modal footer buttons ([ba0ae6c](https://github.com/Zextras/carbonio-design-system/commit/ba0ae6c7382bb085f35ab5e186804162500faa09)), closes [#272](https://github.com/Zextras/carbonio-design-system/issues/272)
|
|
11
|
+
|
|
5
12
|
## [4.2.0](https://github.com/Zextras/carbonio-design-system/compare/v4.1.1...v4.2.0) (2024-02-27)
|
|
6
13
|
|
|
7
14
|
|
package/dist/zapp-ui.bundle.d.ts
CHANGED
|
@@ -1335,7 +1335,7 @@ export declare function generateHighlightSet(fromColorSet: Parameters<typeof gen
|
|
|
1335
1335
|
centered?: boolean | undefined;
|
|
1336
1336
|
}, never>;
|
|
1337
1337
|
|
|
1338
|
-
export declare const ModalFooter: ({
|
|
1338
|
+
export declare const ModalFooter: ({ customFooter, ...modalFooterContentProps }: ModalFooterProps) => React_2.JSX.Element;
|
|
1339
1339
|
|
|
1340
1340
|
export declare const ModalFooterContent: React_2.VFC<ModalFooterContentProps>;
|
|
1341
1341
|
|
package/dist/zapp-ui.bundle.js
CHANGED
|
@@ -25053,41 +25053,15 @@ const ModalFooterContent = ({
|
|
|
25053
25053
|
})));
|
|
25054
25054
|
};
|
|
25055
25055
|
const ModalFooter = ({
|
|
25056
|
-
centered,
|
|
25057
|
-
confirmColor,
|
|
25058
|
-
confirmLabel,
|
|
25059
|
-
confirmDisabled,
|
|
25060
|
-
errorActionLabel,
|
|
25061
25056
|
customFooter,
|
|
25062
|
-
|
|
25063
|
-
onClose,
|
|
25064
|
-
onConfirm,
|
|
25065
|
-
onErrorAction,
|
|
25066
|
-
onSecondaryAction,
|
|
25067
|
-
optionalFooter,
|
|
25068
|
-
secondaryActionLabel,
|
|
25069
|
-
type
|
|
25057
|
+
...modalFooterContentProps
|
|
25070
25058
|
}) => /*#__PURE__*/React__namespace.default.createElement(Container, {
|
|
25071
|
-
orientation: centered ? 'vertical' : 'horizontal',
|
|
25059
|
+
orientation: modalFooterContentProps.centered ? 'vertical' : 'horizontal',
|
|
25072
25060
|
mainAlignment: "flex-end",
|
|
25073
25061
|
padding: {
|
|
25074
25062
|
top: 'large'
|
|
25075
25063
|
}
|
|
25076
|
-
}, customFooter
|
|
25077
|
-
type: type,
|
|
25078
|
-
centered: centered,
|
|
25079
|
-
optionalFooter: optionalFooter,
|
|
25080
|
-
confirmLabel: confirmLabel,
|
|
25081
|
-
confirmColor: confirmColor,
|
|
25082
|
-
confirmDisabled: confirmDisabled,
|
|
25083
|
-
dismissLabel: dismissLabel,
|
|
25084
|
-
onConfirm: onConfirm,
|
|
25085
|
-
onClose: onClose,
|
|
25086
|
-
onSecondaryAction: onSecondaryAction,
|
|
25087
|
-
secondaryActionLabel: secondaryActionLabel,
|
|
25088
|
-
onErrorAction: onErrorAction,
|
|
25089
|
-
errorActionLabel: errorActionLabel
|
|
25090
|
-
}));
|
|
25064
|
+
}, customFooter ?? /*#__PURE__*/React__namespace.default.createElement(ModalFooterContent, modalFooterContentProps));
|
|
25091
25065
|
|
|
25092
25066
|
/*
|
|
25093
25067
|
* SPDX-FileCopyrightText: 2022 Zextras <https://www.zextras.com>
|
|
@@ -25142,14 +25116,16 @@ const Modal = /*#__PURE__*/React__namespace.default.forwardRef(function ModalFn(
|
|
|
25142
25116
|
centered = false,
|
|
25143
25117
|
onConfirm,
|
|
25144
25118
|
confirmLabel = 'OK',
|
|
25119
|
+
confirmDisabled,
|
|
25145
25120
|
confirmColor = 'primary',
|
|
25146
25121
|
onSecondaryAction,
|
|
25147
25122
|
secondaryActionLabel,
|
|
25123
|
+
secondaryActionDisabled,
|
|
25148
25124
|
onClose = _noop,
|
|
25149
25125
|
dismissLabel,
|
|
25150
|
-
copyLabel = 'Copy',
|
|
25151
25126
|
optionalFooter,
|
|
25152
25127
|
customFooter,
|
|
25128
|
+
copyLabel = 'Copy',
|
|
25153
25129
|
hideFooter = false,
|
|
25154
25130
|
showCloseIcon = true,
|
|
25155
25131
|
children,
|
|
@@ -25182,12 +25158,14 @@ const Modal = /*#__PURE__*/React__namespace.default.forwardRef(function ModalFn(
|
|
|
25182
25158
|
type: type,
|
|
25183
25159
|
optionalFooter: optionalFooter,
|
|
25184
25160
|
confirmLabel: confirmLabel,
|
|
25161
|
+
confirmDisabled: confirmDisabled,
|
|
25185
25162
|
confirmColor: confirmColor,
|
|
25186
25163
|
dismissLabel: dismissLabel,
|
|
25187
25164
|
onConfirm: onConfirm,
|
|
25188
25165
|
onClose: onClose,
|
|
25189
25166
|
onSecondaryAction: onSecondaryAction,
|
|
25190
25167
|
secondaryActionLabel: secondaryActionLabel,
|
|
25168
|
+
secondaryActionDisabled: secondaryActionDisabled,
|
|
25191
25169
|
onErrorAction: onCopyClipboard,
|
|
25192
25170
|
errorActionLabel: copyLabel
|
|
25193
25171
|
})));
|
package/package.json
CHANGED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
#
|
|
2
|
+
# SPDX-FileCopyrightText: 2024 Zextras <https://www.zextras.com>
|
|
3
|
+
#
|
|
4
|
+
# SPDX-License-Identifier: AGPL-3.0-only
|
|
5
|
+
#
|
|
6
|
+
sonar.sources=src/
|
|
7
|
+
sonar.javascript.exclusions=**/*.test.*,**/typeUtils/*,**/test*.ts*
|
|
8
|
+
sonar.tests=src/
|
|
9
|
+
sonar.test.inclusions=**/*.test.*,**/typeUtils/*,**/test*.ts*
|
|
10
|
+
sonar.cpd.exclusions=**/*.test.*
|