@vention/machine-ui 3.40.0 → 3.41.0
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/README.md
CHANGED
|
@@ -4,7 +4,7 @@ Machine UI is Vention's component library for building applications and Human-Ma
|
|
|
4
4
|
|
|
5
5
|
## 📚 Documentation
|
|
6
6
|
|
|
7
|
-
Complete documentation, including component examples, design system guidelines, and usage instructions
|
|
7
|
+
Complete documentation, including component examples, design system guidelines, and usage instructions can be found at:
|
|
8
8
|
|
|
9
9
|
**[https://assets.vention.com/machine-ui-storybook/](https://assets.vention.com/machine-ui-storybook/index.html?path=/docs/guides-introduction--documentation)**
|
|
10
10
|
|
package/index.esm.js
CHANGED
|
@@ -4179,7 +4179,7 @@ const VentionModal = props => {
|
|
|
4179
4179
|
})), props.type === "info" && jsx(IconInfoSmall, Object.assign({}, iconProps, {
|
|
4180
4180
|
"data-testid": ventionModalTestIds.infoIcon
|
|
4181
4181
|
})), props.type === "loading" && jsx(CircularProgress$1, {
|
|
4182
|
-
"data-testid": ventionModalTestIds.
|
|
4182
|
+
"data-testid": ventionModalTestIds.loadingIcon
|
|
4183
4183
|
}), props.type === "warning" && jsx(IconAlertTriangle, Object.assign({}, iconProps, {
|
|
4184
4184
|
"data-testid": ventionModalTestIds.warningIcon
|
|
4185
4185
|
})), props.type === "negative" && jsx(IconAlertTriangle, Object.assign({}, iconProps, {
|
|
@@ -4285,8 +4285,8 @@ const ALIGN_ITEMS = {
|
|
|
4285
4285
|
left: "flex-start",
|
|
4286
4286
|
center: "center"
|
|
4287
4287
|
};
|
|
4288
|
-
const getColors$2 = (
|
|
4289
|
-
switch (
|
|
4288
|
+
const getColors$2 = (modelType, theme) => {
|
|
4289
|
+
switch (modelType) {
|
|
4290
4290
|
case "positive":
|
|
4291
4291
|
return {
|
|
4292
4292
|
statusContainerColor: theme.palette.background.success,
|
|
@@ -4307,7 +4307,8 @@ const getColors$2 = (type, theme) => {
|
|
|
4307
4307
|
statusContainerColor: theme.palette.background.destructive,
|
|
4308
4308
|
statusGlowColor: theme.palette.background.subtleDestructive
|
|
4309
4309
|
};
|
|
4310
|
-
|
|
4310
|
+
case "loading":
|
|
4311
|
+
case "none":
|
|
4311
4312
|
return {
|
|
4312
4313
|
statusContainerColor: "transparent",
|
|
4313
4314
|
statusGlowColor: "transparent"
|
|
@@ -4343,7 +4344,7 @@ const getBodyTextTypography = (modalSize, isTouchDevice) => {
|
|
|
4343
4344
|
const ventionModalTestIds = {
|
|
4344
4345
|
positiveIcon: "vention-modal-positive-icon",
|
|
4345
4346
|
infoIcon: "vention-modal-info-icon",
|
|
4346
|
-
|
|
4347
|
+
loadingIcon: "vention-modal-loading-icon",
|
|
4347
4348
|
warningIcon: "vention-modal-warning-icon",
|
|
4348
4349
|
negativeIcon: "vention-modal-negative-icon",
|
|
4349
4350
|
modalActions: "vention-modal-actions"
|
package/package.json
CHANGED
|
@@ -46,7 +46,7 @@ export declare const VentionModal: (props: VentionModalProps) => import("react/j
|
|
|
46
46
|
export declare const ventionModalTestIds: {
|
|
47
47
|
positiveIcon: string;
|
|
48
48
|
infoIcon: string;
|
|
49
|
-
|
|
49
|
+
loadingIcon: string;
|
|
50
50
|
warningIcon: string;
|
|
51
51
|
negativeIcon: string;
|
|
52
52
|
modalActions: string;
|