@ctlyst.id/internal-ui 2.1.1 → 2.1.3
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/alert/components/alert-context.d.ts +4 -0
- package/dist/components/alert/components/alert.d.ts +1 -1
- package/dist/components/breadcrumb/__stories__/breadcrumb.stories.d.ts +2 -1
- package/dist/components/breadcrumb/components/bread-crumb.d.ts +1 -0
- package/dist/components/button/__stories__/button.stories.d.ts +1 -0
- package/dist/components/header/__stories__/header.stories.d.ts +3 -1
- package/dist/components/header/components/header.d.ts +7 -0
- package/dist/components/header/components/logo.d.ts +8 -0
- package/dist/components/header/components/profile.d.ts +2 -0
- package/dist/components/header/components/version.d.ts +1 -0
- package/dist/components/header/types.d.ts +1 -1
- package/dist/components/tabs/__stories__/tabs.stories.d.ts +1 -0
- package/dist/components/tabs/components/tab.d.ts +1 -0
- package/dist/config/__stories__/foundations.stories.d.ts +1 -0
- package/dist/config/theme/components/alert.d.ts +6 -16
- package/dist/config/theme/components/checkbox.d.ts +6 -7
- package/dist/config/theme/components/chips.d.ts +9 -8
- package/dist/internal-ui.cjs.development.js +205 -128
- package/dist/internal-ui.cjs.development.js.map +1 -1
- package/dist/internal-ui.cjs.production.min.js +5 -5
- package/dist/internal-ui.cjs.production.min.js.map +1 -1
- package/dist/internal-ui.esm.js +208 -131
- package/dist/internal-ui.esm.js.map +1 -1
- package/package.json +4 -4
@@ -19,6 +19,10 @@ declare const STATUSES: {
|
|
19
19
|
icon: typeof WarningIcon;
|
20
20
|
colorScheme: string;
|
21
21
|
};
|
22
|
+
neutral: {
|
23
|
+
icon: typeof InfoIcon;
|
24
|
+
colorScheme: string;
|
25
|
+
};
|
22
26
|
};
|
23
27
|
export declare function getStatusColorScheme(status: AlertStatus): string;
|
24
28
|
export declare function getStatusIcon(status: AlertStatus): typeof InfoIcon | typeof CheckIcon | typeof WarningIcon;
|
@@ -7,7 +7,7 @@ interface AlertOptions {
|
|
7
7
|
*/
|
8
8
|
status?: AlertStatus;
|
9
9
|
}
|
10
|
-
export declare type AlertVariant = 'solid' | '
|
10
|
+
export declare type AlertVariant = 'solid' | 'light';
|
11
11
|
export interface AlertProps extends HTMLChakraProps<'div'>, AlertOptions, ThemingProps<'Alert'> {
|
12
12
|
/**
|
13
13
|
* @default false
|
@@ -4,4 +4,5 @@ declare const _default: {
|
|
4
4
|
decorators: ((Story: React.ElementType) => JSX.Element)[];
|
5
5
|
};
|
6
6
|
export default _default;
|
7
|
-
export declare const
|
7
|
+
export declare const Default: () => JSX.Element;
|
8
|
+
export declare const PanelBar: () => JSX.Element;
|
@@ -4,4 +4,6 @@ declare const _default: {
|
|
4
4
|
decorators: ((Story: React.ElementType) => JSX.Element)[];
|
5
5
|
};
|
6
6
|
export default _default;
|
7
|
-
export declare const
|
7
|
+
export declare const HeaderOldDefault: () => JSX.Element;
|
8
|
+
export declare const HeaderNewDefault: () => JSX.Element;
|
9
|
+
export declare const HeaderNewCustomize: () => JSX.Element;
|
@@ -2,10 +2,17 @@ import type { BoxProps } from '@chakra-ui/react';
|
|
2
2
|
import * as React from 'react';
|
3
3
|
import type { HeaderDataProps } from '../types';
|
4
4
|
export declare type HeaderProps = BoxProps & {
|
5
|
+
brandColor?: BoxProps['bgColor'];
|
5
6
|
data?: HeaderDataProps;
|
6
7
|
onLogout?: () => void;
|
7
8
|
onOpenModalRelease?: () => void;
|
8
9
|
hideSwitchMode?: boolean;
|
10
|
+
mainLogo?: string;
|
11
|
+
mainLogoSize?: BoxProps['h'];
|
12
|
+
centerLogo?: string;
|
13
|
+
centerLogoSize?: BoxProps['h'];
|
14
|
+
hideEnv?: boolean;
|
15
|
+
urlLogo?: string;
|
9
16
|
};
|
10
17
|
declare const Header: React.FC<HeaderProps>;
|
11
18
|
export default Header;
|
@@ -1,2 +1,10 @@
|
|
1
|
+
import type { BoxProps } from '@chakra-ui/react';
|
2
|
+
import React from 'react';
|
3
|
+
export interface LogoProps {
|
4
|
+
url?: string;
|
5
|
+
imageUrl: string;
|
6
|
+
height?: BoxProps['h'];
|
7
|
+
}
|
8
|
+
export declare const Logo: React.FC<LogoProps>;
|
1
9
|
export declare const XMSLogo: () => JSX.Element;
|
2
10
|
export declare const VoilaLogo: () => JSX.Element;
|
@@ -9,6 +9,7 @@ declare const _default: {
|
|
9
9
|
export default _default;
|
10
10
|
export declare const Color: () => JSX.Element;
|
11
11
|
export declare const Typography: () => JSX.Element;
|
12
|
+
export declare const Radius: () => JSX.Element;
|
12
13
|
export declare const Shadow: () => JSX.Element;
|
13
14
|
export declare const Spacing: () => JSX.Element;
|
14
15
|
export declare const Sizes: () => JSX.Element;
|
@@ -9,7 +9,7 @@ declare const alertTheme: {
|
|
9
9
|
};
|
10
10
|
title: {
|
11
11
|
fontWeight: string;
|
12
|
-
|
12
|
+
textStyle: string;
|
13
13
|
marginEnd: string;
|
14
14
|
};
|
15
15
|
description: {
|
@@ -23,6 +23,7 @@ declare const alertTheme: {
|
|
23
23
|
h: string;
|
24
24
|
};
|
25
25
|
action: {
|
26
|
+
color: string;
|
26
27
|
'& +.chakra-alert__close': {
|
27
28
|
ml: string;
|
28
29
|
};
|
@@ -46,32 +47,21 @@ declare const alertTheme: {
|
|
46
47
|
}>;
|
47
48
|
} | undefined;
|
48
49
|
variants?: {
|
49
|
-
|
50
|
+
light: (props: StyleFunctionProps) => {
|
50
51
|
container: {
|
51
|
-
[x: string]: string
|
52
|
-
[x: string]: string;
|
53
|
-
};
|
54
|
-
_dark: {
|
55
|
-
[x: string]: string;
|
56
|
-
};
|
52
|
+
[x: string]: string;
|
57
53
|
color: string;
|
58
54
|
};
|
59
55
|
};
|
60
56
|
solid: (props: StyleFunctionProps) => {
|
61
57
|
container: {
|
62
|
-
[x: string]: string
|
63
|
-
[x: string]: string;
|
64
|
-
};
|
65
|
-
_dark: {
|
66
|
-
[x: string]: string;
|
67
|
-
};
|
68
|
-
color: string;
|
58
|
+
[x: string]: string;
|
69
59
|
};
|
70
60
|
};
|
71
61
|
} | undefined;
|
72
62
|
defaultProps?: {
|
73
63
|
size?: string | number | undefined;
|
74
|
-
variant?: "
|
64
|
+
variant?: "light" | "solid" | undefined;
|
75
65
|
colorScheme?: string | undefined;
|
76
66
|
} | undefined;
|
77
67
|
parts: ("container" | "icon" | "title" | "description" | "spinner")[];
|
@@ -2,18 +2,17 @@ declare const Checkbox: {
|
|
2
2
|
baseStyle?: {
|
3
3
|
control: {
|
4
4
|
borderRadius: string;
|
5
|
-
|
6
|
-
|
5
|
+
w: number;
|
6
|
+
h: number;
|
7
7
|
border: string;
|
8
8
|
};
|
9
9
|
icon: {
|
10
10
|
color: string;
|
11
11
|
};
|
12
12
|
label: {
|
13
|
-
|
14
|
-
lineHeight: string;
|
13
|
+
textStyle: string;
|
15
14
|
color: string;
|
16
|
-
ml:
|
15
|
+
ml: number;
|
17
16
|
};
|
18
17
|
_disabled: {
|
19
18
|
background: string;
|
@@ -45,7 +44,7 @@ declare const Checkbox: {
|
|
45
44
|
};
|
46
45
|
};
|
47
46
|
label: {
|
48
|
-
|
47
|
+
textStyle: string;
|
49
48
|
};
|
50
49
|
icon: {
|
51
50
|
fontSize: string;
|
@@ -82,7 +81,7 @@ declare const Checkbox: {
|
|
82
81
|
};
|
83
82
|
};
|
84
83
|
label: {
|
85
|
-
|
84
|
+
textStyle: string;
|
86
85
|
_disabled: {
|
87
86
|
opacity: number;
|
88
87
|
};
|
@@ -1,24 +1,25 @@
|
|
1
1
|
declare const Chips: {
|
2
2
|
baseStyle?: ((props: import("@chakra-ui/styled-system").StyleFunctionProps) => {
|
3
3
|
color: string;
|
4
|
-
|
4
|
+
textStyle: string;
|
5
5
|
borderRadius: string;
|
6
6
|
borderWidth: string;
|
7
7
|
borderColor: string;
|
8
8
|
bg: string;
|
9
|
-
|
10
|
-
|
9
|
+
px: number;
|
10
|
+
py: number;
|
11
11
|
cursor: string;
|
12
|
+
_hover: {
|
13
|
+
bg: string;
|
14
|
+
};
|
12
15
|
}) | undefined;
|
13
16
|
sizes?: {
|
14
17
|
sm: {
|
15
|
-
|
16
|
-
lineHeight: number;
|
18
|
+
textStyle: string;
|
17
19
|
};
|
18
20
|
md: {
|
19
|
-
|
20
|
-
|
21
|
-
lineHeight: number;
|
21
|
+
textStyle: string;
|
22
|
+
py: number;
|
22
23
|
};
|
23
24
|
} | undefined;
|
24
25
|
variants?: {
|