@up42/up-components 4.10.0 → 4.11.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/dist/cjs/index.js +2 -2
- package/dist/cjs/types/components/StatusLight/StatusLight.d.ts +46 -0
- package/dist/cjs/types/components/StatusLight/StatusLight.test.d.ts +1 -0
- package/dist/cjs/types/index.d.ts +1 -0
- package/dist/esm/index.js +2 -2
- package/dist/esm/types/components/StatusLight/StatusLight.d.ts +46 -0
- package/dist/esm/types/components/StatusLight/StatusLight.test.d.ts +1 -0
- package/dist/esm/types/index.d.ts +1 -0
- package/dist/index.d.ts +46 -2
- package/package.json +2 -2
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { SxProps, Theme } from '@mui/material';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
declare const COLORS: {
|
|
4
|
+
primary: string;
|
|
5
|
+
secondary: string;
|
|
6
|
+
success: string;
|
|
7
|
+
warning: string;
|
|
8
|
+
error: string;
|
|
9
|
+
info: string;
|
|
10
|
+
neutral: string;
|
|
11
|
+
};
|
|
12
|
+
declare const SIZES: {
|
|
13
|
+
small: {
|
|
14
|
+
circle: string;
|
|
15
|
+
fontSize: string;
|
|
16
|
+
fontWeight: string;
|
|
17
|
+
lineHeight: string;
|
|
18
|
+
};
|
|
19
|
+
medium: {
|
|
20
|
+
circle: string;
|
|
21
|
+
fontSize: string;
|
|
22
|
+
fontWeight: string;
|
|
23
|
+
lineHeight: string;
|
|
24
|
+
};
|
|
25
|
+
large: {
|
|
26
|
+
circle: string;
|
|
27
|
+
fontSize: string;
|
|
28
|
+
fontWeight: string;
|
|
29
|
+
lineHeight: string;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
type Variant = 'filled' | 'half';
|
|
33
|
+
type Color = keyof typeof COLORS;
|
|
34
|
+
type Size = keyof typeof SIZES;
|
|
35
|
+
export type StatusLightProps = {
|
|
36
|
+
label: string;
|
|
37
|
+
variant?: Variant;
|
|
38
|
+
color?: Color;
|
|
39
|
+
size?: Size;
|
|
40
|
+
sx?: SxProps<Theme>;
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* Documentation: https://up-components.up42.com/?path=/docs/data-display-status-light--docs
|
|
44
|
+
*/
|
|
45
|
+
export declare const StatusLight: ({ label, variant, color, size, sx, }: StatusLightProps) => React.JSX.Element;
|
|
46
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -48,6 +48,7 @@ export { Divider, type DividerProps } from './components/Divider/Divider';
|
|
|
48
48
|
export { FeatureCard, type FeatureCardProps } from './components/FeatureCard/FeatureCard';
|
|
49
49
|
export { FeatureCardHeader, type FeatureCardHeaderProps } from './components/FeatureCardHeader/FeatureCardHeader';
|
|
50
50
|
export { FeatureCardHeaderActions, type IconAction, type MenuAction, type FeatureCardHeaderActionsProps, } from './components/FeatureCardHeaderActions/FeatureCardHeaderActions';
|
|
51
|
+
export { StatusLight, type StatusLightProps } from './components/StatusLight/StatusLight';
|
|
51
52
|
export { DocumentationPopover, type DocumentationPopoverProps, } from './components/DocumentationPopover/DocumentationPopover';
|
|
52
53
|
export { CodeInline, type CodeInlineProps } from './components/CodeInline/CodeInline';
|
|
53
54
|
export { CodeSnippet, type CodeSnippetProps, type CodeSnippetItemProps } from './components/CodeSnippet/CodeSnippet';
|