@vention/machine-ui 3.33.7 → 3.35.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vention/machine-ui",
3
- "version": "3.33.7",
3
+ "version": "3.35.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/VentionCo/machine-cloud.git"
@@ -1,8 +1,9 @@
1
1
  import React from "react";
2
+ import { Theme } from "@mui/material";
2
3
  import { Sizes, StrictExtract } from "../../theme/machine-ui-theme";
3
4
  export interface VentionBannerProps {
4
5
  size?: StrictExtract<Sizes, "large">;
5
- accent?: "strong";
6
+ accent?: "medium" | "strong";
6
7
  color: "warning" | "negative" | "positive" | "operational";
7
8
  startAdornment?: React.ReactNode;
8
9
  title: string;
@@ -14,7 +15,9 @@ export declare const VentionBanner: ({ size, accent, color, startAdornment, titl
14
15
  /**
15
16
  * Compute banner background and text color based on the `color` prop
16
17
  */
17
- export declare function useBannerColorStyles(color: "warning" | "negative" | "positive" | "operational", theme: any): {
18
+ export declare function useBannerColorStyles(color: VentionBannerProps["color"], accent: VentionBannerProps["accent"], theme: Theme): {
18
19
  backgroundColor: string;
20
+ outlineColor: string;
21
+ iconColor: string;
19
22
  textColor: string;
20
23
  };
@@ -1,11 +1,10 @@
1
1
  /// <reference types="react" />
2
2
  import { ButtonProps } from "@mui/material";
3
3
  import { Sizes, StrictExtract } from "../../../theme/machine-ui-theme";
4
- import { IconType } from "../../vention-icon/vention-icon";
5
4
  export interface VentionDropdownButtonProps extends Omit<ButtonProps, "size" | "variant" | "color"> {
6
5
  variant?: "simple" | "outline" | "shaded";
7
6
  size?: StrictExtract<Sizes, "small" | "medium" | "large">;
8
- iconType: IconType;
7
+ icon?: React.ReactNode;
9
8
  stroke?: number | string;
10
9
  disabled?: boolean;
11
10
  className?: string;
@@ -14,4 +13,4 @@ export interface VentionDropdownButtonProps extends Omit<ButtonProps, "size" | "
14
13
  contentColor?: string;
15
14
  onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;
16
15
  }
17
- export declare const VentionDropdownButton: ({ variant, size, className, disabled, onClick, iconType, badgeText, label, stroke, contentColor, ...other }: VentionDropdownButtonProps) => import("react/jsx-runtime").JSX.Element;
16
+ export declare const VentionDropdownButton: ({ variant, size, className, disabled, onClick, icon, badgeText, label, stroke, contentColor, ...other }: VentionDropdownButtonProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,11 @@
1
1
  /// <reference types="react" />
2
2
  import { IconType, DuotoneIconType } from "./_generated/icon-types";
3
3
  export type { IconType, DuotoneIconType };
4
+ export declare const IconSizes: {
5
+ readonly small: 16;
6
+ readonly medium: 20;
7
+ readonly large: 24;
8
+ };
4
9
  interface VentionIconProps {
5
10
  type: IconType | DuotoneIconType;
6
11
  size?: number;
@@ -1,13 +1,12 @@
1
- import React from "react";
2
- import { Sizes, StrictExtract } from "../../theme/machine-ui-theme";
1
+ import { VentionBannerProps } from "../vention-banner/vention-banner";
3
2
  export interface VentionModalBannerProps {
4
- size?: StrictExtract<Sizes, "large">;
5
- accent?: "strong";
6
- color: "warning" | "negative" | "positive" | "operational";
7
- icon?: React.ReactNode;
8
- title: string;
9
- description: string;
10
- endAdornment?: React.ReactNode;
3
+ size?: VentionBannerProps["size"];
4
+ accent?: VentionBannerProps["accent"];
5
+ color: VentionBannerProps["color"];
6
+ icon?: VentionBannerProps["startAdornment"];
7
+ title: VentionBannerProps["title"];
8
+ description: VentionBannerProps["description"];
9
+ endAdornment?: VentionBannerProps["endAdornment"];
11
10
  maxWidth?: number;
12
11
  }
13
12
  /**