@vention/machine-ui 3.39.0 → 3.40.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/index.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
2
|
-
import { Typography, Button, Stack, Box as Box$1, Grid, IconButton, ClickAwayListener, Modal, linearProgressClasses, LinearProgress, InputAdornment, TextField, Radio, FormControlLabel, FormControl, Select, MenuItem, FormHelperText, ButtonGroup, Paper, Card, CardMedia, CardContent, ListItemIcon, ListItemText, Popover, MenuList, useTheme as useTheme$1, Drawer, Tooltip, Checkbox } from '@mui/material';
|
|
2
|
+
import { Typography, Button, Stack, Box as Box$1, Grid, IconButton, ClickAwayListener, Modal, CircularProgress as CircularProgress$1, linearProgressClasses, LinearProgress, InputAdornment, TextField, Radio, FormControlLabel, FormControl, Select, MenuItem, FormHelperText, ButtonGroup, Paper, Card, CardMedia, CardContent, ListItemIcon, ListItemText, Popover, MenuList, useTheme as useTheme$1, Drawer, Tooltip, Checkbox } from '@mui/material';
|
|
3
3
|
import { IconCheck, IconAlertTriangleFilled, IconAlertTriangle, IconExclamationMark, IconExternalLink, IconX, IconInfoCircleFilled, IconCircleCheckFilled, IconChevronUp, IconChevronDown, IconInfoCircle, IconInfoSmall, IconMinus, IconPlus, IconLoader2, IconCaretRightFilled, IconChevronsRight, IconChevronsLeft, IconChevronRight } from '@tabler/icons-react';
|
|
4
4
|
import { forwardRef, useState, cloneElement, useRef, useEffect, useCallback, lazy, memo, Suspense, useMemo, createContext, useContext, useImperativeHandle, Children, Fragment as Fragment$1, useReducer } from 'react';
|
|
5
5
|
import { tss } from 'tss-react/mui';
|
|
@@ -4178,7 +4178,9 @@ const VentionModal = props => {
|
|
|
4178
4178
|
"data-testid": ventionModalTestIds.positiveIcon
|
|
4179
4179
|
})), props.type === "info" && jsx(IconInfoSmall, Object.assign({}, iconProps, {
|
|
4180
4180
|
"data-testid": ventionModalTestIds.infoIcon
|
|
4181
|
-
})), props.type === "
|
|
4181
|
+
})), props.type === "loading" && jsx(CircularProgress$1, {
|
|
4182
|
+
"data-testid": ventionModalTestIds.loading
|
|
4183
|
+
}), props.type === "warning" && jsx(IconAlertTriangle, Object.assign({}, iconProps, {
|
|
4182
4184
|
"data-testid": ventionModalTestIds.warningIcon
|
|
4183
4185
|
})), props.type === "negative" && jsx(IconAlertTriangle, Object.assign({}, iconProps, {
|
|
4184
4186
|
"data-testid": ventionModalTestIds.negativeIcon
|
|
@@ -4253,7 +4255,7 @@ const useStyles$w = tss.withParams().create(({
|
|
|
4253
4255
|
statusCircle: {
|
|
4254
4256
|
width: status.containerSize,
|
|
4255
4257
|
height: status.containerSize,
|
|
4256
|
-
display: "flex",
|
|
4258
|
+
display: type === "loading" ? "block" : "flex",
|
|
4257
4259
|
justifyContent: "center",
|
|
4258
4260
|
alignItems: "center",
|
|
4259
4261
|
borderRadius: "50%",
|
|
@@ -4305,7 +4307,7 @@ const getColors$2 = (type, theme) => {
|
|
|
4305
4307
|
statusContainerColor: theme.palette.background.destructive,
|
|
4306
4308
|
statusGlowColor: theme.palette.background.subtleDestructive
|
|
4307
4309
|
};
|
|
4308
|
-
|
|
4310
|
+
default:
|
|
4309
4311
|
return {
|
|
4310
4312
|
statusContainerColor: "transparent",
|
|
4311
4313
|
statusGlowColor: "transparent"
|
|
@@ -4341,6 +4343,7 @@ const getBodyTextTypography = (modalSize, isTouchDevice) => {
|
|
|
4341
4343
|
const ventionModalTestIds = {
|
|
4342
4344
|
positiveIcon: "vention-modal-positive-icon",
|
|
4343
4345
|
infoIcon: "vention-modal-info-icon",
|
|
4346
|
+
loading: "vention-modal-loading-icon",
|
|
4344
4347
|
warningIcon: "vention-modal-warning-icon",
|
|
4345
4348
|
negativeIcon: "vention-modal-negative-icon",
|
|
4346
4349
|
modalActions: "vention-modal-actions"
|
package/package.json
CHANGED
|
@@ -8,7 +8,7 @@ export interface VentionModalProps {
|
|
|
8
8
|
* This can be a simple string or your own React Component.
|
|
9
9
|
*/
|
|
10
10
|
body: string | React.ReactElement;
|
|
11
|
-
type: "positive" | "info" | "warning" | "negative" | "none";
|
|
11
|
+
type: "positive" | "info" | "warning" | "negative" | "loading" | "none";
|
|
12
12
|
modalSize?: VentionModalBaseProps["modalSize"];
|
|
13
13
|
isTouchDevice?: boolean;
|
|
14
14
|
isOpen: VentionModalBaseProps["isOpen"];
|
|
@@ -46,6 +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
|
+
loading: string;
|
|
49
50
|
warningIcon: string;
|
|
50
51
|
negativeIcon: string;
|
|
51
52
|
modalActions: string;
|