@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.
@@ -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' | 'subtle';
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 BreadcrumbDefault: () => JSX.Element;
7
+ export declare const Default: () => JSX.Element;
8
+ export declare const PanelBar: () => JSX.Element;
@@ -12,6 +12,7 @@ export interface BreadCrumbProps {
12
12
  className?: string;
13
13
  disableHome?: boolean;
14
14
  spacing?: number;
15
+ backButton?: () => void;
15
16
  }
16
17
  declare const BreadCrumb: React.FC<BreadCrumbProps>;
17
18
  export default BreadCrumb;
@@ -9,3 +9,4 @@ export declare const Size: () => JSX.Element;
9
9
  export declare const Variant: () => JSX.Element;
10
10
  export declare const TextLink: () => JSX.Element;
11
11
  export declare const IconButton: () => JSX.Element;
12
+ export declare const ButtonGroupDefault: () => 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 HeaderDefault: () => JSX.Element;
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;
@@ -1,6 +1,8 @@
1
+ import type { BoxProps } from '@chakra-ui/react';
1
2
  import * as React from 'react';
2
3
  import type { HeaderDataProps } from '../types';
3
4
  export declare type ProfileProps = {
5
+ brandColor?: BoxProps['bgColor'];
4
6
  data?: HeaderDataProps;
5
7
  onLogout?: () => void;
6
8
  };
@@ -1,6 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import type { Environment } from '../types';
3
3
  export declare type VersionProps = {
4
+ hideEnv?: boolean;
4
5
  environment?: Environment;
5
6
  version?: string;
6
7
  onOpenModalRelease?: () => void;
@@ -5,6 +5,6 @@ export declare type HeaderDataProps = {
5
5
  email?: string;
6
6
  name?: string;
7
7
  userRole?: string;
8
- office?: string;
8
+ office?: string | string[];
9
9
  avatarUrl?: string;
10
10
  };
@@ -5,3 +5,4 @@ declare const _default: {
5
5
  };
6
6
  export default _default;
7
7
  export declare const TabsDefault: () => JSX.Element;
8
+ export declare const TabsWithPills: () => JSX.Element;
@@ -4,6 +4,7 @@ declare type AddonProps = {
4
4
  isSelected: boolean;
5
5
  };
6
6
  declare type TabProps = ChakraTabProps & {
7
+ 'data-test-id'?: string;
7
8
  leftAddon?({ isSelected }: AddonProps): React.ReactNode;
8
9
  rightAddon?({ isSelected }: AddonProps): React.ReactNode;
9
10
  };
@@ -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
- lineHeight: string;
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
- subtle: (props: StyleFunctionProps) => {
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?: "subtle" | "solid" | undefined;
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
- width: string;
6
- height: string;
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
- fontWeight: string;
14
- lineHeight: string;
13
+ textStyle: string;
15
14
  color: string;
16
- ml: string;
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
- fontSize: string;
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
- fontSize: string;
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
- fontSize: string;
4
+ textStyle: string;
5
5
  borderRadius: string;
6
6
  borderWidth: string;
7
7
  borderColor: string;
8
8
  bg: string;
9
- paddingX: number;
10
- paddingY: number;
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
- fontSize: string;
16
- lineHeight: number;
18
+ textStyle: string;
17
19
  };
18
20
  md: {
19
- fontSize: string;
20
- paddingY: number;
21
- lineHeight: number;
21
+ textStyle: string;
22
+ py: number;
22
23
  };
23
24
  } | undefined;
24
25
  variants?: {