@ssa-ui-kit/core 2.29.0 → 2.31.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.
@@ -0,0 +1,2 @@
1
+ import { ChipProps } from './types';
2
+ export declare const Chip: import("react").ForwardRefExoticComponent<ChipProps & import("react").RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,22 @@
1
+ export declare const VARIANTS: {
2
+ readonly OUTLINED: "outlined";
3
+ readonly FILLED: "filled";
4
+ };
5
+ export declare const COLORS: {
6
+ readonly DEFAULT: "default";
7
+ readonly PRIMARY: "primary";
8
+ readonly SUCCESS: "success";
9
+ readonly ERROR: "error";
10
+ readonly INFO: "info";
11
+ readonly WARNING: "warning";
12
+ };
13
+ export declare const mapSizes: {
14
+ small: import("@emotion/react").SerializedStyles;
15
+ medium: import("@emotion/react").SerializedStyles;
16
+ large: import("@emotion/react").SerializedStyles;
17
+ };
18
+ export declare const ICON_SIZES: {
19
+ readonly small: 12;
20
+ readonly medium: 14;
21
+ readonly large: 16;
22
+ };
@@ -0,0 +1,13 @@
1
+ import { Theme } from '@emotion/react';
2
+ import { ChipProps } from './types';
3
+ type SemanticColor = Exclude<ChipProps['color'], 'default' | undefined>;
4
+ type ColorConfig = {
5
+ main: string;
6
+ bg: string;
7
+ };
8
+ export declare const colorMap: (theme: Theme) => Record<SemanticColor, ColorConfig>;
9
+ export declare const getVariantColors: (theme: Theme, variant: ChipProps["variant"], color: ChipProps["color"], disabled: boolean) => {
10
+ chipStyles: import("@emotion/react").SerializedStyles;
11
+ iconColor: string | undefined;
12
+ };
13
+ export {};
@@ -0,0 +1,2 @@
1
+ export * from './Chip';
2
+ export type { ChipProps, ChipVariant, ChipColor, ChipSize } from './types';
@@ -0,0 +1,35 @@
1
+ import { Theme } from '@emotion/react';
2
+ import { CommonProps } from '../../types/emotion';
3
+ export declare const ChipBase: import("@emotion/styled").StyledComponent<{
4
+ theme?: Theme;
5
+ as?: React.ElementType;
6
+ } & CommonProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
7
+ export declare const small: import("@emotion/react").SerializedStyles;
8
+ export declare const medium: import("@emotion/react").SerializedStyles;
9
+ export declare const large: import("@emotion/react").SerializedStyles;
10
+ export declare const filled: (theme: Theme) => import("@emotion/react").SerializedStyles;
11
+ export declare const filledDisabled: (theme: Theme) => import("@emotion/react").SerializedStyles;
12
+ export declare const outlined: (theme: Theme) => import("@emotion/react").SerializedStyles;
13
+ export declare const outlinedDisabled: (theme: Theme) => import("@emotion/react").SerializedStyles;
14
+ export declare const clickable: import("@emotion/react").SerializedStyles;
15
+ export declare const clickableDisabled: import("@emotion/react").SerializedStyles;
16
+ export declare const IconWrapper: import("@emotion/styled").StyledComponent<{
17
+ theme?: Theme;
18
+ as?: React.ElementType;
19
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
20
+ export declare const AvatarWrapper: import("@emotion/styled").StyledComponent<{
21
+ theme?: Theme;
22
+ as?: React.ElementType;
23
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
24
+ export declare const TitleWrapper: import("@emotion/styled").StyledComponent<{
25
+ theme?: Theme;
26
+ as?: React.ElementType;
27
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
28
+ export declare const LabelWrapper: import("@emotion/styled").StyledComponent<{
29
+ theme?: Theme;
30
+ as?: React.ElementType;
31
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
32
+ export declare const DeleteIconButton: import("@emotion/styled").StyledComponent<{
33
+ theme?: Theme;
34
+ as?: React.ElementType;
35
+ }, import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {}>;
@@ -0,0 +1,23 @@
1
+ import { CommonProps } from '../../types/emotion';
2
+ import { Interpolation, Theme } from '@emotion/react';
3
+ import { ReactNode, MouseEventHandler } from 'react';
4
+ import { IconProps } from '../Icon/types';
5
+ export type ChipVariant = 'filled' | 'outlined';
6
+ export type ChipColor = 'default' | 'primary' | 'success' | 'error' | 'info' | 'warning';
7
+ export type ChipSize = 'small' | 'medium' | 'large';
8
+ export interface ChipProps extends CommonProps {
9
+ label: ReactNode;
10
+ title?: ReactNode;
11
+ variant?: ChipVariant;
12
+ color?: ChipColor;
13
+ size?: ChipSize;
14
+ disabled?: boolean;
15
+ icon?: IconProps['name'];
16
+ avatar?: ReactNode;
17
+ onDelete?: MouseEventHandler<HTMLButtonElement>;
18
+ deleteIcon?: IconProps['name'];
19
+ showIcon?: boolean;
20
+ onClick?: MouseEventHandler<HTMLDivElement>;
21
+ clickable?: boolean;
22
+ css?: Interpolation<Theme>;
23
+ }
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { PersonInfoProps } from './types';
3
+ export declare const PersonInfo: React.ForwardRefExoticComponent<PersonInfoProps & React.RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import { PersonInfoStyles } from './types';
3
+ interface PersonInfoAvatarProps {
4
+ avatar: string;
5
+ value?: string;
6
+ counter?: string | number;
7
+ styles?: PersonInfoStyles;
8
+ }
9
+ export declare const PersonInfoAvatar: React.FC<PersonInfoAvatarProps>;
10
+ export {};
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { PersonInfoStyles } from './types';
3
+ interface PersonInfoBadgesProps {
4
+ badges: React.ReactNode | (string | React.ReactNode)[];
5
+ styles?: PersonInfoStyles;
6
+ }
7
+ export declare const PersonInfoBadges: React.FC<PersonInfoBadgesProps>;
8
+ export {};
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import type { IconProps } from '../Icon/types';
3
+ interface PersonInfoIconProps {
4
+ icon: IconProps['name'] | React.ReactNode;
5
+ }
6
+ export declare const PersonInfoIcon: React.FC<PersonInfoIconProps>;
7
+ export {};
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import { Interpolation, Theme } from '@emotion/react';
3
+ interface PersonInfoValueProps {
4
+ value: string;
5
+ counter?: string | number;
6
+ css?: Interpolation<Theme>;
7
+ counterCss?: Interpolation<Theme>;
8
+ }
9
+ export declare const PersonInfoValue: React.FC<PersonInfoValueProps>;
10
+ export {};
@@ -0,0 +1,9 @@
1
+ import type { Theme } from '@emotion/react';
2
+ type BadgeColorName = keyof MainColors;
3
+ export declare const DEFAULT_BADGE_COLORS: Array<keyof MainColors>;
4
+ interface BadgeColorConfig {
5
+ text: string;
6
+ bg: string;
7
+ }
8
+ export declare const BADGE_COLORS: (theme: Theme) => Record<BadgeColorName, BadgeColorConfig>;
9
+ export {};
@@ -0,0 +1,2 @@
1
+ export * from './PersonInfo';
2
+ export * from './types';
@@ -0,0 +1,56 @@
1
+ import { CommonProps } from '../../types/emotion';
2
+ export declare const PersonInfoBase: import("@emotion/styled").StyledComponent<{
3
+ theme?: import("@emotion/react").Theme;
4
+ as?: React.ElementType;
5
+ } & CommonProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
6
+ export declare const PersonInfoHeader: import("@emotion/styled").StyledComponent<{
7
+ theme?: import("@emotion/react").Theme;
8
+ as?: React.ElementType;
9
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
10
+ export declare const IconWrapper: import("@emotion/styled").StyledComponent<{
11
+ theme?: import("@emotion/react").Theme;
12
+ as?: React.ElementType;
13
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
14
+ export declare const TitleWrapper: import("@emotion/styled").StyledComponent<{
15
+ theme?: import("@emotion/react").Theme;
16
+ as?: React.ElementType;
17
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
18
+ export declare const Title: import("@emotion/styled").StyledComponent<{
19
+ theme?: import("@emotion/react").Theme;
20
+ as?: React.ElementType;
21
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
22
+ export declare const TextBase: import("@emotion/styled").StyledComponent<{
23
+ theme?: import("@emotion/react").Theme;
24
+ as?: React.ElementType;
25
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
26
+ export declare const ValueWithCounter: import("@emotion/styled").StyledComponent<{
27
+ theme?: import("@emotion/react").Theme;
28
+ as?: React.ElementType;
29
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
30
+ export declare const Counter: import("@emotion/styled").StyledComponent<{
31
+ theme?: import("@emotion/react").Theme;
32
+ as?: React.ElementType;
33
+ } & import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement> & {
34
+ theme?: import("@emotion/react").Theme;
35
+ }, {}, {}>;
36
+ export declare const AttributesList: import("@emotion/styled").StyledComponent<{
37
+ theme?: import("@emotion/react").Theme;
38
+ as?: React.ElementType;
39
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
40
+ export declare const AvatarWrapper: import("@emotion/styled").StyledComponent<{
41
+ theme?: import("@emotion/react").Theme;
42
+ as?: React.ElementType;
43
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
44
+ export declare const BadgeWrapper: import("@emotion/styled").StyledComponent<{
45
+ theme?: import("@emotion/react").Theme;
46
+ as?: React.ElementType;
47
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
48
+ export declare const StyledBadge: import("@emotion/styled").StyledComponent<Omit<Omit<import("react").HTMLProps<HTMLDivElement>, "size"> & import("../Badge/types").BadgeProps, "ref"> & import("react").RefAttributes<HTMLDivElement> & {
49
+ theme?: import("@emotion/react").Theme;
50
+ }, {}, {}>;
51
+ export declare const CustomBadge: import("@emotion/styled").StyledComponent<{
52
+ theme?: import("@emotion/react").Theme;
53
+ as?: React.ElementType;
54
+ } & {
55
+ colorName: keyof MainColors;
56
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -0,0 +1,18 @@
1
+ import { ReactNode } from 'react';
2
+ import { Interpolation, Theme } from '@emotion/react';
3
+ import { CommonProps } from '../../types/emotion';
4
+ import { IconProps } from '../Icon/types';
5
+ type PersonInfoStyleKeys = 'title' | 'avatarName' | 'counter' | 'attributes' | 'badge' | 'badgeItem' | 'value' | 'description';
6
+ export type PersonInfoStyles = Partial<Record<PersonInfoStyleKeys, Interpolation<Theme>>>;
7
+ export interface PersonInfoProps extends CommonProps {
8
+ title: string;
9
+ icon?: IconProps['name'] | ReactNode;
10
+ value?: string;
11
+ badges?: ReactNode | (string | ReactNode)[];
12
+ avatar?: string;
13
+ counter?: string | number;
14
+ attributes?: (string | ReactNode)[];
15
+ description?: string;
16
+ styles?: PersonInfoStyles;
17
+ }
18
+ export {};
@@ -1,2 +1,2 @@
1
1
  import { TypeaheadItemProps } from '../types';
2
- export declare const TypeaheadOption: ({ children, ...rest }: TypeaheadItemProps) => import("@emotion/react/jsx-runtime").JSX.Element;
2
+ export declare const TypeaheadOption: ({ children, avatar, ...rest }: TypeaheadItemProps) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -18,6 +18,10 @@ export declare const TypeaheadItem: import("@emotion/styled").StyledComponent<{
18
18
  } & {
19
19
  isDisabled?: boolean;
20
20
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
21
+ export declare const TypeaheadItemAvatar: import("@emotion/styled").StyledComponent<{
22
+ theme?: Theme;
23
+ as?: React.ElementType;
24
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
21
25
  export declare const TypeaheadItemLabel: import("@emotion/styled").StyledComponent<{
22
26
  theme?: Theme;
23
27
  as?: React.ElementType;
@@ -48,5 +48,6 @@ export interface TypeaheadItemProps extends CommonProps {
48
48
  value?: string | number;
49
49
  label?: string | number;
50
50
  children?: React.ReactNode;
51
+ avatar?: React.ReactNode;
51
52
  onClick?: (e: React.MouseEvent<HTMLElement>) => void;
52
53
  }
@@ -68,11 +68,13 @@ export * from './AccordionGroup';
68
68
  export * from './AddNewAccountCard';
69
69
  export * from './ButtonGroup';
70
70
  export * from './CardList';
71
+ export * from './Chip';
71
72
  export * from './Charts';
72
73
  export * from './Checkbox';
73
74
  export * from './CollapsibleNavBar';
74
75
  export * from './ColorPicker';
75
76
  export * from './DatePicker';
77
+ export * from './PersonInfo';
76
78
  export * from './DateRangePicker';
77
79
  export * from './Drawer';
78
80
  export * from './Field';