react-magma-dom 4.15.0-next.7 → 4.15.0-next.8

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.
@@ -1,4 +1,5 @@
1
1
  import * as React from 'react';
2
+ import { IconProps } from 'react-magma-icons';
2
3
  /**
3
4
  * @children required
4
5
  */
@@ -8,6 +9,14 @@ export interface BadgeProps extends React.HTMLAttributes<HTMLButtonElement> {
8
9
  * @default BadgeColor.primary
9
10
  */
10
11
  color?: BadgeColor;
12
+ /**
13
+ * Icon to display on the left side of the badge
14
+ */
15
+ leftIcon?: React.ReactElement<IconProps>;
16
+ /**
17
+ * Icon to display on the right side of the badge
18
+ */
19
+ rightIcon?: React.ReactElement<IconProps>;
11
20
  isInverse?: boolean;
12
21
  /**
13
22
  * Action that fires when the badge is clicked. Causes the Badge to render as a button instead of a span.
@@ -22,20 +31,37 @@ export interface BadgeProps extends React.HTMLAttributes<HTMLButtonElement> {
22
31
  * @default BadgeVariant.label
23
32
  */
24
33
  variant?: BadgeVariant;
34
+ /**
35
+ * Indicates the visual weight of the component
36
+ * @default BadgeWeight.default
37
+ */
38
+ weight?: BadgeWeight;
25
39
  }
26
40
  export declare enum BadgeColor {
27
41
  danger = "danger",
42
+ info = "info",
28
43
  primary = "primary",
29
44
  secondary = "secondary",
30
45
  success = "success",
46
+ warning = "warning",
31
47
  light = "light"
32
48
  }
33
49
  export declare enum BadgeVariant {
34
50
  counter = "counter",
35
51
  label = "label"
36
52
  }
53
+ export declare enum BadgeWeight {
54
+ default = "default",
55
+ light = "light"
56
+ }
57
+ export declare function buildInverseLightWeightBadgeBackground(props: any): string;
58
+ export declare function buildLightWeightBadgeBackground(props: any): any;
37
59
  export declare function buildBadgeBackground(props: any): any;
60
+ export declare function buildInverseLightWeightBadgeTextColor(props: any): any;
61
+ export declare function buildLightWeightBadgeTextColor(props: any): any;
38
62
  export declare function buildBadgeTextColor(props: any): any;
63
+ export declare function buildInverseLightWeightBadgeBorderColor(props: any): any;
64
+ export declare function buildLightWeightBadgeBorderColor(props: any): any;
39
65
  export declare function buildBadgeBorderColor(props: any): any;
40
66
  export declare const baseBadgeStyles: (props: any) => import("@emotion/react").SerializedStyles;
41
67
  export declare const Badge: React.ForwardRefExoticComponent<BadgeProps & React.RefAttributes<HTMLSpanElement>>;
@@ -4,7 +4,7 @@ export * from './useTreeItem';
4
4
  export * from './useTreeView';
5
5
  export * from './utils';
6
6
  export * from './types';
7
- export { TreeItemSelectedInterface, TreeViewApi } from './useTreeView';
7
+ export type { TreeItemSelectedInterface, TreeViewApi } from './useTreeView';
8
8
  export * from './TreeViewSelectionContext';
9
9
  export * from './TreeViewExpansionContext';
10
10
  export * from './TreeViewConfigContext';