@fattureincloud/fic-design-system 0.7.46 → 0.7.48
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/common/components/typography/types.d.ts +1 -1
- package/dist/common/types/index.d.ts +4 -0
- package/dist/common/types/misc.d.ts +7 -0
- package/dist/common/utils/dsUtils.d.ts +2 -0
- package/dist/components/buttons/button/types.d.ts +5 -5
- package/dist/components/drawer/drawer.d.ts +1 -0
- package/dist/components/dropdown/types.d.ts +2 -2
- package/dist/components/editableInput/EditableInput.d.ts +3 -2
- package/dist/components/editableInput/components/CustomInput.d.ts +2 -1
- package/dist/components/editableInput/components/TextAreaPopup.d.ts +2 -1
- package/dist/components/editableInput/editableInput.stories.d.ts +7 -0
- package/dist/components/floatingBadge/types.d.ts +1 -0
- package/dist/components/form/checkbox/styled.d.ts +2 -2
- package/dist/components/form/checkbox/types.d.ts +1 -0
- package/dist/components/form/datepicker/types.d.ts +2 -2
- package/dist/components/form/fileUploader/components/FileUploaderContent.d.ts +2 -2
- package/dist/components/form/fileUploader/fileUploaderPalette.d.ts +2 -2
- package/dist/components/form/fileUploader/types.d.ts +3 -3
- package/dist/components/form/inputHelper/InputHelper.d.ts +2 -2
- package/dist/components/form/inputHelper/types.d.ts +2 -2
- package/dist/components/form/inputText/types.d.ts +1 -1
- package/dist/components/form/textArea/types.d.ts +1 -0
- package/dist/components/gridCard/GridCard.d.ts +4 -0
- package/dist/components/gridCard/gridCard.stories.d.ts +8 -0
- package/dist/components/gridCard/index.d.ts +2 -0
- package/dist/components/gridCard/stories/data.d.ts +3 -0
- package/dist/components/gridCard/styled.d.ts +15 -0
- package/dist/components/gridCard/types.d.ts +16 -0
- package/dist/components/gridCard/utils.d.ts +2 -0
- package/dist/components/icon/Icon.d.ts +0 -1
- package/dist/components/icon/components/iconBackground/IconBackground.d.ts +2 -3
- package/dist/components/icon/components/iconBackground/iconBackgroundPalette.d.ts +2 -3
- package/dist/components/icon/icon.stories.d.ts +5 -5
- package/dist/components/icon/iconPalette.d.ts +4 -3
- package/dist/components/icon/utils.d.ts +2 -2
- package/dist/components/layout/sidebarItem/types.d.ts +8 -2
- package/dist/components/modals/components/ModalSearchable.d.ts +1 -1
- package/dist/components/modals/modalStyled.d.ts +1 -1
- package/dist/components/newTable/Table.d.ts +1 -1
- package/dist/components/newTable/styled.d.ts +1 -4
- package/dist/components/newTable/types.d.ts +1 -0
- package/dist/components/tip/types.d.ts +2 -2
- package/dist/components/verticalTabs/VerticalTabs.d.ts +4 -0
- package/dist/components/verticalTabs/components/verticalTabsSelector/VerticalTabsSelector.d.ts +4 -0
- package/dist/components/verticalTabs/components/verticalTabsSelector/index.d.ts +2 -0
- package/dist/components/verticalTabs/components/verticalTabsSelector/styled.d.ts +6 -0
- package/dist/components/verticalTabs/components/verticalTabsSelector/types.d.ts +14 -0
- package/dist/components/verticalTabs/components/verticalTabsSelector/utils.d.ts +7 -0
- package/dist/components/verticalTabs/index.d.ts +3 -0
- package/dist/components/verticalTabs/styled.d.ts +8 -0
- package/dist/components/verticalTabs/types.d.ts +33 -0
- package/dist/components/verticalTabs/verticalTabs.stories.d.ts +5 -0
- package/dist/components/verticalTabs/verticalTabsPalette.d.ts +3 -0
- package/dist/index.d.ts +3 -3
- package/dist/index.esm.js +9 -9
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +9 -9
- package/dist/index.js.map +1 -1
- package/dist/styles/theme.d.ts +28 -28
- package/dist/styles/types.d.ts +4 -4
- package/package.json +1 -1
@@ -5,7 +5,7 @@ import { paletteColor } from '../../../styles/types';
|
|
5
5
|
export declare type TextProps = {
|
6
6
|
bold?: boolean;
|
7
7
|
centered?: boolean;
|
8
|
-
children: React.ReactNode | React.ReactNode[]
|
8
|
+
children: React.ReactNode | React.ReactNode[];
|
9
9
|
clamp?: number;
|
10
10
|
className?: string;
|
11
11
|
color?: colors | paletteColor;
|
@@ -1,3 +1,5 @@
|
|
1
|
+
export declare const HEX_REGEX: RegExp;
|
2
|
+
export declare const isHexColor: (value: string) => boolean;
|
1
3
|
export declare const isNumber: (n: number | string | undefined) => boolean;
|
2
4
|
export declare const parseDimension: (d: number | string) => string;
|
3
5
|
export declare const pixelToNumber: (s: string) => number;
|
@@ -1,15 +1,15 @@
|
|
1
1
|
import { MouseEventHandler } from 'react';
|
2
2
|
import { ButtonParts } from './buttonPalette';
|
3
3
|
export declare const buttonSizesArray: readonly ["large", "medium"];
|
4
|
-
export declare type buttonSizes = typeof buttonSizesArray[number];
|
4
|
+
export declare type buttonSizes = (typeof buttonSizesArray)[number];
|
5
5
|
export declare const buttonTypesArray: readonly ["primary", "secondary", "text"];
|
6
|
-
export declare type buttonTypes = typeof buttonTypesArray[number];
|
6
|
+
export declare type buttonTypes = (typeof buttonTypesArray)[number];
|
7
7
|
export declare const buttonColorsArray: readonly ["blue", "red", "green", "grey", "yellow"];
|
8
|
-
export declare type buttonColors = typeof buttonColorsArray[number];
|
8
|
+
export declare type buttonColors = (typeof buttonColorsArray)[number];
|
9
9
|
export declare const buttonDisableColorArray: readonly ["disabled"];
|
10
|
-
export declare type buttonDisableColor = typeof buttonDisableColorArray[number];
|
10
|
+
export declare type buttonDisableColor = (typeof buttonDisableColorArray)[number];
|
11
11
|
export declare const buttonPartsArray: readonly ["normal", "hover", "active", "text", "textHover"];
|
12
|
-
export declare type buttonParts = typeof buttonPartsArray[number];
|
12
|
+
export declare type buttonParts = (typeof buttonPartsArray)[number];
|
13
13
|
export interface WrapperProps {
|
14
14
|
isDisabled: boolean;
|
15
15
|
fullWidth?: boolean;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { Placement } from '@popperjs/core/lib/enums';
|
2
|
-
import React, { CSSProperties, MouseEventHandler } from 'react';
|
2
|
+
import React, { CSSProperties, MouseEventHandler, ReactNode } from 'react';
|
3
3
|
import { IconProps } from '../icon';
|
4
4
|
export declare type TitleProps = {
|
5
5
|
text: string;
|
@@ -38,7 +38,7 @@ export interface DropdownItemProps {
|
|
38
38
|
onClick?: MouseEventHandler;
|
39
39
|
maxWidth?: DropdownProps['maxWidth'];
|
40
40
|
fullWidth?: DropdownProps['fullWidth'];
|
41
|
-
children?:
|
41
|
+
children?: ReactNode;
|
42
42
|
isDisabled?: boolean;
|
43
43
|
type?: DropdownItemType;
|
44
44
|
onMouseEnter?: () => void;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
-
interface
|
2
|
+
export interface EditableInputProps {
|
3
3
|
hover: boolean;
|
4
4
|
content: string | number | null;
|
5
5
|
unitSymbol?: string | undefined;
|
@@ -7,6 +7,7 @@ interface Props {
|
|
7
7
|
rowId: number;
|
8
8
|
onOpen?: () => void;
|
9
9
|
onClose?: () => void;
|
10
|
+
maxContentLength?: number;
|
10
11
|
}
|
11
|
-
declare const EditableInput: ({ hover, content, unitSymbol, onChange, rowId, onOpen, onClose }:
|
12
|
+
declare const EditableInput: ({ hover, content, unitSymbol, onChange, rowId, onOpen, onClose, maxContentLength, }: EditableInputProps) => JSX.Element;
|
12
13
|
export default EditableInput;
|
@@ -7,6 +7,7 @@ interface Props {
|
|
7
7
|
rowId: number;
|
8
8
|
onOpen?: () => void;
|
9
9
|
onClose?: () => void;
|
10
|
+
maxContentLength?: number;
|
10
11
|
}
|
11
|
-
declare const CustomInput: ({ hover, onChange, unitSymbol, content, rowId, onOpen, onClose }: Props) => JSX.Element;
|
12
|
+
declare const CustomInput: ({ hover, onChange, unitSymbol, content, rowId, onOpen, onClose, maxContentLength, }: Props) => JSX.Element;
|
12
13
|
export default CustomInput;
|
@@ -7,6 +7,7 @@ interface Props {
|
|
7
7
|
rowId: number;
|
8
8
|
onClose?: () => void;
|
9
9
|
focus: boolean;
|
10
|
+
maxContentLength?: number;
|
10
11
|
}
|
11
|
-
declare const TextAreaPopup: ({ onChange, content, onBlur, rowId, onClose, focus }: Props) => JSX.Element;
|
12
|
+
declare const TextAreaPopup: ({ onChange, content, onBlur, rowId, onClose, focus, maxContentLength }: Props) => JSX.Element;
|
12
13
|
export default TextAreaPopup;
|
@@ -0,0 +1,7 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { Meta } from '@storybook/react';
|
3
|
+
import { EditableInputProps } from './EditableInput';
|
4
|
+
declare const EditableInputStories: Meta<EditableInputProps>;
|
5
|
+
export declare const Default: () => JSX.Element;
|
6
|
+
export declare const WithMaxContentLength: () => JSX.Element;
|
7
|
+
export default EditableInputStories;
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { CheckboxInputProps, CheckboxStyles } from './types';
|
2
|
-
declare const Input: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, CheckboxStyles & CheckboxInputProps, keyof CheckboxStyles>;
|
3
|
-
export
|
2
|
+
export declare const Input: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, CheckboxStyles & CheckboxInputProps, keyof CheckboxStyles>;
|
3
|
+
export declare const RequiredAsterisk: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {}, never>;
|
@@ -38,6 +38,7 @@ export interface CheckboxImplProps extends Omit<CheckboxInputProps, 'hasError'>,
|
|
38
38
|
className?: string;
|
39
39
|
onChange?: InputHTMLAttributes<HTMLInputElement>['onChange'];
|
40
40
|
textColor?: paletteColor;
|
41
|
+
required?: boolean;
|
41
42
|
}
|
42
43
|
export interface CheckboxProps extends Omit<CheckboxImplProps, 'value'> {
|
43
44
|
value: CheckboxImplProps['value'] | boolean;
|
@@ -1,9 +1,9 @@
|
|
1
|
-
import { Dispatch,
|
1
|
+
import { Dispatch, ReactNode, SetStateAction } from 'react';
|
2
2
|
import { ReactDatePickerProps } from 'react-datepicker';
|
3
3
|
import { CommonFormTypes } from '../common/types';
|
4
4
|
import { LabelProps } from '../label';
|
5
5
|
export declare type DatePickerStatus = 'dayPicker' | 'monthPicker' | 'yearPicker';
|
6
|
-
export declare type RenderCustomFooterType = (props: RenderCustomFooterProps) =>
|
6
|
+
export declare type RenderCustomFooterType = (props: RenderCustomFooterProps) => ReactNode;
|
7
7
|
export declare type CustomButtonProps = {
|
8
8
|
text: string;
|
9
9
|
onClick: (props: RenderCustomFooterProps) => void;
|
@@ -4,8 +4,8 @@ import { FileUploaderSize, statuses } from '../types';
|
|
4
4
|
interface Props {
|
5
5
|
icon: IconProps | null;
|
6
6
|
status: statuses;
|
7
|
-
text?: React.
|
8
|
-
caption?: React.
|
7
|
+
text?: React.ReactNode;
|
8
|
+
caption?: React.ReactNode;
|
9
9
|
size: FileUploaderSize;
|
10
10
|
}
|
11
11
|
declare const FileUploaderContent: ({ icon, status, text, caption, size }: Props) => JSX.Element;
|
@@ -7,8 +7,8 @@ export declare type FileUploaderParts = {
|
|
7
7
|
borderColor: paletteColor;
|
8
8
|
color: paletteColor;
|
9
9
|
secondaryColor: paletteColor;
|
10
|
-
text: React.
|
11
|
-
caption: React.
|
10
|
+
text: React.ReactNode;
|
11
|
+
caption: React.ReactNode;
|
12
12
|
icon: IconProps | null;
|
13
13
|
};
|
14
14
|
export declare type FileUploaderPalette = {
|
@@ -1,11 +1,11 @@
|
|
1
1
|
import { FileUploaderParts } from './fileUploaderPalette';
|
2
2
|
export declare const uploaderStatusesArray: readonly ["default", "uploading", "success", "error", "disabled"];
|
3
|
-
export declare type FileUploaderStatus = typeof uploaderStatusesArray[number];
|
3
|
+
export declare type FileUploaderStatus = (typeof uploaderStatusesArray)[number];
|
4
4
|
export declare type statuses = FileUploaderStatus | 'dragging';
|
5
5
|
export declare const uploaderSize: readonly ["small", "normal"];
|
6
|
-
export declare type FileUploaderSize = typeof uploaderSize[number];
|
6
|
+
export declare type FileUploaderSize = (typeof uploaderSize)[number];
|
7
7
|
export declare const typesArray: readonly ["unknown", "pdf", "image", "zip", "archive", "text", "document", "spreadsheet", "presentation", "xml", "p7m", "csv"];
|
8
|
-
export declare type FileType = typeof typesArray[number];
|
8
|
+
export declare type FileType = (typeof typesArray)[number];
|
9
9
|
declare type TypeDefinition = {
|
10
10
|
mimeTypes: string[];
|
11
11
|
extensions: string[];
|
@@ -1,8 +1,8 @@
|
|
1
|
-
import {
|
1
|
+
import { ReactNode } from 'react';
|
2
2
|
import { IconProps } from '../../icon';
|
3
3
|
import { inputHelperStatus } from './types';
|
4
4
|
export interface InputHelperProps extends WrapperProps {
|
5
|
-
message:
|
5
|
+
message: ReactNode;
|
6
6
|
icon?: IconProps | null;
|
7
7
|
}
|
8
8
|
declare const InputHelper: ({ status, message, icon }: InputHelperProps) => JSX.Element;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export declare const inputHelperStatusesArray:
|
2
|
-
export declare type inputHelperStatus = typeof inputHelperStatusesArray[number];
|
1
|
+
export declare const inputHelperStatusesArray: readonly ["normal", "error", "warning", "info", "success"];
|
2
|
+
export declare type inputHelperStatus = (typeof inputHelperStatusesArray)[number];
|
@@ -5,7 +5,7 @@ import { CommonFormTypes } from '../common/types';
|
|
5
5
|
import { LabelProps } from '../label';
|
6
6
|
import { UnitDropdownProps } from './components/UnitDropdown';
|
7
7
|
export declare const inputTypesArray: readonly ["password", "text", "number", "code", "telephone"];
|
8
|
-
export declare type inputTypes = typeof inputTypesArray[number];
|
8
|
+
export declare type inputTypes = (typeof inputTypesArray)[number];
|
9
9
|
declare type HTMLInputProps = Pick<InputHTMLAttributes<HTMLInputElement>, 'autoFocus' | 'className' | 'name' | 'onBlur' | 'onChange' | 'onFocus' | 'onKeyDown' | 'onKeyPress' | 'onKeyUp' | 'required'>;
|
10
10
|
export declare type InputElementProps = CommonFormTypes & HTMLInputProps & {
|
11
11
|
actionIcon?: IconProps;
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { Meta, Story } from '@storybook/react';
|
2
|
+
import { ComponentProps } from 'react';
|
3
|
+
import { GridCard } from '.';
|
4
|
+
import { GridCardProps } from './types';
|
5
|
+
export declare const Template: Story<GridCardProps>;
|
6
|
+
export declare const CustomData: Story<GridCardProps>;
|
7
|
+
declare const GridCardStories: Meta<ComponentProps<typeof GridCard>>;
|
8
|
+
export default GridCardStories;
|
@@ -0,0 +1,15 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
export declare const Container: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
3
|
+
export declare const Row: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
4
|
+
export declare const InnerContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
5
|
+
cardBackgroundColor?: string | undefined;
|
6
|
+
isLastElement?: boolean | undefined;
|
7
|
+
}, never>;
|
8
|
+
export declare const IconContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
9
|
+
iconBackgroundColor?: string | undefined;
|
10
|
+
}, never>;
|
11
|
+
export declare const StyledIcon: import("styled-components").StyledComponent<({ onClick, isDisabled, ...props }: import("../icon/Icon").IconProps) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
|
12
|
+
export declare const TextContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
13
|
+
export declare const Label: import("styled-components").StyledComponent<({ children, type, ...otherProps }: import("../../common/components/typography/types").TextProps & import("react").HTMLAttributes<HTMLDivElement>) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
|
14
|
+
export declare const Value: import("styled-components").StyledComponent<({ children, type, ...otherProps }: import("../../common/components/typography/types").TextProps & import("react").HTMLAttributes<HTMLDivElement>) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
|
15
|
+
export declare const Description: import("styled-components").StyledComponent<({ children, type, ...otherProps }: import("../../common/components/typography/types").TextProps & import("react").HTMLAttributes<HTMLDivElement>) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import { IconProps } from 'components/icon';
|
2
|
+
import { ReactElement, ReactNode } from 'react';
|
3
|
+
import { paletteColor } from '../../styles/types';
|
4
|
+
export interface GridCardProps {
|
5
|
+
data: CardData[][];
|
6
|
+
renderCustomData?: () => ReactElement;
|
7
|
+
}
|
8
|
+
export interface CardData {
|
9
|
+
icon?: IconProps;
|
10
|
+
label?: string;
|
11
|
+
value?: string | ReactNode;
|
12
|
+
description?: string;
|
13
|
+
cardBackgroundColor?: paletteColor;
|
14
|
+
iconBackgroundColor?: paletteColor;
|
15
|
+
renderCustomData?: () => ReactElement;
|
16
|
+
}
|
@@ -0,0 +1,2 @@
|
|
1
|
+
import { DefaultTheme } from 'styled-components';
|
2
|
+
export declare const getIconBackgroundColor: (theme: DefaultTheme, iconColor?: "black" | "white" | "grey" | "blue" | "indigo" | "yellow" | "orange" | "red" | "green" | "fuchsia" | "pink" | "cyan" | "primary" | undefined, customIconBackground?: string | undefined) => string;
|
@@ -1,13 +1,12 @@
|
|
1
1
|
import { SizeProp } from '@fortawesome/fontawesome-svg-core';
|
2
2
|
import React from 'react';
|
3
|
-
import { paletteColor } from '../../../../styles/types';
|
4
|
-
import { iconColors } from '../../iconPalette';
|
3
|
+
import { AllColors, paletteColor } from '../../../../styles/types';
|
5
4
|
interface Props extends WrapperProps {
|
6
5
|
children: React.ReactNode;
|
7
6
|
}
|
8
7
|
declare const IconBackground: ({ children, ...rest }: Props) => JSX.Element;
|
9
8
|
interface WrapperProps {
|
10
|
-
color:
|
9
|
+
color: AllColors;
|
11
10
|
size: SizeProp;
|
12
11
|
backgroundColor?: paletteColor;
|
13
12
|
className?: string;
|
@@ -1,7 +1,6 @@
|
|
1
|
-
import { paletteColor } from '../../../../styles/types';
|
2
|
-
import { iconColors } from '../../iconPalette';
|
1
|
+
import { AllColors, paletteColor } from '../../../../styles/types';
|
3
2
|
export declare type IconBackgroundPalette = {
|
4
|
-
[key in
|
3
|
+
[key in AllColors]: paletteColor;
|
5
4
|
};
|
6
5
|
declare const iconBackgroundPalette: IconBackgroundPalette;
|
7
6
|
export default iconBackgroundPalette;
|
@@ -1,9 +1,9 @@
|
|
1
|
+
/// <reference types="react" />
|
1
2
|
import { Meta } from '@storybook/react';
|
2
|
-
import React from 'react';
|
3
3
|
import { IconProps } from './Icon';
|
4
|
-
export declare const Normal: () =>
|
5
|
-
export declare const WithBackground: () =>
|
6
|
-
export declare const DuotoneColored: () =>
|
7
|
-
export declare const _CustomIcon: () =>
|
4
|
+
export declare const Normal: () => JSX.Element;
|
5
|
+
export declare const WithBackground: () => JSX.Element;
|
6
|
+
export declare const DuotoneColored: () => JSX.Element;
|
7
|
+
export declare const _CustomIcon: () => JSX.Element;
|
8
8
|
declare const IconStories: Meta<IconProps>;
|
9
9
|
export default IconStories;
|
@@ -1,11 +1,12 @@
|
|
1
|
-
import {
|
2
|
-
|
1
|
+
import { paletteColor } from '../../index';
|
2
|
+
import { AllColors } from '../../styles/types';
|
3
|
+
export declare type iconColors = AllColors | string;
|
3
4
|
declare type iconParts = 'primary' | 'secondary';
|
4
5
|
export declare type IconColorPalette = {
|
5
6
|
[k in iconParts]: paletteColor;
|
6
7
|
};
|
7
8
|
export declare type IconPalette = {
|
8
|
-
[k in
|
9
|
+
[k in AllColors]: IconColorPalette;
|
9
10
|
};
|
10
11
|
declare const iconPalette: IconPalette;
|
11
12
|
export default iconPalette;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { DefaultTheme } from 'styled-components';
|
2
|
-
import {
|
2
|
+
import { IconProps } from './Icon';
|
3
3
|
import { IconColorPalette } from './iconPalette';
|
4
|
-
interface GetIconStylesParams extends
|
4
|
+
interface GetIconStylesParams extends IconProps {
|
5
5
|
theme: DefaultTheme;
|
6
6
|
}
|
7
7
|
export declare const getIconStyles: ({ theme, color }: GetIconStylesParams) => IconColorPalette;
|
@@ -32,7 +32,8 @@ export interface SidebarItemDropdownProps {
|
|
32
32
|
export declare enum SidebarBadgeConfigType {
|
33
33
|
COUNTER = 0,
|
34
34
|
ICON = 1,
|
35
|
-
DOT = 2
|
35
|
+
DOT = 2,
|
36
|
+
COUNTER_ICON = 3
|
36
37
|
}
|
37
38
|
declare type BadgeBaseConfig = {
|
38
39
|
size?: BadgeSize;
|
@@ -49,7 +50,12 @@ interface BadgeIconConfig extends BadgeBaseConfig {
|
|
49
50
|
interface BadgeDotConfig extends BadgeBaseConfig {
|
50
51
|
type: SidebarBadgeConfigType.DOT;
|
51
52
|
}
|
52
|
-
|
53
|
+
interface BadgeCounterIconConfig extends BadgeBaseConfig {
|
54
|
+
type: SidebarBadgeConfigType.COUNTER_ICON;
|
55
|
+
icon: IconProps;
|
56
|
+
counter: number | string;
|
57
|
+
}
|
58
|
+
export declare type SidebarBadgeConfigProps = BadgeCounterConfig | BadgeIconConfig | BadgeDotConfig | BadgeCounterIconConfig;
|
53
59
|
declare type StatusType = 'normal' | 'active' | 'disabled';
|
54
60
|
export interface SidebarItemStyles extends colorsPalette {
|
55
61
|
hoverColor: paletteColor;
|
@@ -4,7 +4,7 @@ declare type PropTypes = {
|
|
4
4
|
handleChangeValue: (value: string) => void;
|
5
5
|
value: string;
|
6
6
|
placeholder: string;
|
7
|
-
children: React.
|
7
|
+
children: React.ReactNode;
|
8
8
|
};
|
9
9
|
declare type TModalSearchable = React.FunctionComponent<PropTypes & Omit<ModalPropsInterface, 'header'>>;
|
10
10
|
declare const ModalSearchable: TModalSearchable;
|
@@ -4,7 +4,7 @@ import { ModalPropsInterface, StyledModalBoxProps } from './types';
|
|
4
4
|
export declare const headerFooterHeight = "80px";
|
5
5
|
export declare const animationDuration = 200;
|
6
6
|
export declare const StyledReactModalContainer: import("styled-components").StyledComponent<typeof ReactModal, import("styled-components").DefaultTheme, ModalPropsInterface & {
|
7
|
-
children: React.
|
7
|
+
children: React.ReactNode;
|
8
8
|
}, never>;
|
9
9
|
export declare const StyledModalBox: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, StyledModalBoxProps, never>;
|
10
10
|
export declare const ModalBody: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, ModalPropsInterface, never>;
|
@@ -30,5 +30,5 @@ import { TableProps } from './types';
|
|
30
30
|
* @param {number} rowIdHighlight id of the row that will be highlighted
|
31
31
|
* @param {string | number} actionColumnWidth used to determine the width of the action column
|
32
32
|
*/
|
33
|
-
declare const Table: <T>({ data, columns, isSelectable, toggles, onTogglesChange, headerSize, isTogglesSortable, sortable, sortDescFirst, enableSettings, settingsDropdownConfig, rowActions, bulkActions, isLoading, allSelectedCTA, noPagination, pageSize: pageLength, listSize, paginationPreviousText, paginationNextText, onPaginationChange, uniqueId, onSort, renderEmptyState, onRowClick, bodyHeight, totalPages, rowIdHighlight, rowHighlightColor, rowSelection, onRowSelection, forceHideSettings, renderBulkActions, preSettedTableSettings, onChangeTableSettings, notRemovableColumns, rowSize, actionColumnWidth, disableScrollX, }: TableProps<T>) => JSX.Element;
|
33
|
+
declare const Table: <T>({ data, columns, isSelectable, toggles, onTogglesChange, headerSize, isTogglesSortable, sortable, sortDescFirst, enableSettings, settingsDropdownConfig, rowActions, bulkActions, isLoading, allSelectedCTA, noPagination, pageSize: pageLength, listSize, paginationPreviousText, paginationNextText, onPaginationChange, uniqueId, onSort, renderEmptyState, onRowClick, bodyHeight, totalPages, rowIdHighlight, rowHighlightColor, rowSelection, onRowSelection, forceHideSettings, renderBulkActions, preSettedTableSettings, onChangeTableSettings, notRemovableColumns, rowSize, actionColumnWidth, disableScrollX, resetPageIndex, }: TableProps<T>) => JSX.Element;
|
34
34
|
export default Table;
|
@@ -2,8 +2,5 @@
|
|
2
2
|
export declare const Container: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
3
3
|
export declare const ScrollableContent: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
4
4
|
export declare const TableWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
5
|
-
export declare const SortIndicator: import("styled-components").StyledComponent<({ onClick, isDisabled, ...props }: import("../icon").IconProps) => JSX.Element, import("styled-components").DefaultTheme, {
|
6
|
-
isSorted: boolean;
|
7
|
-
isSortedDesc: boolean;
|
8
|
-
}, never>;
|
5
|
+
export declare const SortIndicator: import("styled-components").StyledComponent<({ onClick, isDisabled, ...props }: import("../icon").IconProps) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
|
9
6
|
export declare const PaginationContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
@@ -53,6 +53,7 @@ export interface TableProps<T> {
|
|
53
53
|
onChangeTableSettings?: onChangeTableSettings;
|
54
54
|
actionColumnWidth?: string | number;
|
55
55
|
disableScrollX?: boolean;
|
56
|
+
resetPageIndex?: boolean;
|
56
57
|
}
|
57
58
|
export declare type onChangeTableSettings = (key: keyof PreSettedTableSettings, valueChange: Pick<PreSettedTableSettings, 'orderColumns' | 'dimensionRow' | 'notVisibleColumns'>) => void;
|
58
59
|
export interface PreSettedTableSettings {
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { ReactNode } from 'react';
|
2
2
|
import { paletteColor } from '../..';
|
3
3
|
import { IconProps } from '../icon';
|
4
4
|
export declare enum TipType {
|
@@ -18,7 +18,7 @@ export interface TipProps {
|
|
18
18
|
leftIcon?: IconProps;
|
19
19
|
onClose?: () => void;
|
20
20
|
renderCloseIcon?: () => JSX.Element;
|
21
|
-
text:
|
21
|
+
text: ReactNode;
|
22
22
|
type?: TipType;
|
23
23
|
}
|
24
24
|
export declare type TipPalette = {
|
@@ -0,0 +1,6 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { MappedWrapperProps } from './types';
|
3
|
+
export declare const VerticalTabsSelectorWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, MappedWrapperProps & Required<Pick<import("./types").VerticalTabsSelectorProps, "type" | "active">>, keyof MappedWrapperProps>;
|
4
|
+
export declare const TextContainer: import("styled-components").StyledComponent<({ children, type, ...otherProps }: import("../../../../common/components/typography/types").TextProps & import("react").HTMLAttributes<HTMLDivElement>) => JSX.Element, import("styled-components").DefaultTheme, {
|
5
|
+
fade: boolean;
|
6
|
+
}, never>;
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import { paletteColor } from '../../../../styles/types';
|
2
|
+
import { VerticalTabsHeaderProps } from '../../types';
|
3
|
+
export declare type VerticalTabsSelectorProps = VerticalTabsHeaderProps & {
|
4
|
+
active: boolean;
|
5
|
+
editMode: boolean;
|
6
|
+
onClick: () => void;
|
7
|
+
};
|
8
|
+
export declare type WrapperProps = Required<Pick<VerticalTabsSelectorProps, 'active' | 'type'>>;
|
9
|
+
export declare type MappedWrapperProps = {
|
10
|
+
color: paletteColor;
|
11
|
+
background: paletteColor;
|
12
|
+
hoverBackground: paletteColor;
|
13
|
+
activeBackground: paletteColor;
|
14
|
+
};
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { DefaultTheme } from 'styled-components';
|
2
|
+
import { MappedWrapperProps, WrapperProps } from './types';
|
3
|
+
declare type Params = WrapperProps & {
|
4
|
+
theme: DefaultTheme;
|
5
|
+
};
|
6
|
+
export declare const mapColors: ({ active, theme, type }: Params) => MappedWrapperProps;
|
7
|
+
export {};
|
@@ -0,0 +1,8 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
export declare const VerticalTabsWrapper: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("../card").StyledCardProps & {
|
3
|
+
children: import("react").ReactNode | import("react").ReactNode[];
|
4
|
+
className?: string | undefined;
|
5
|
+
style?: import("react").CSSProperties | undefined;
|
6
|
+
} & import("react").RefAttributes<HTMLDivElement>>, import("styled-components").DefaultTheme, {}, never>;
|
7
|
+
export declare const VerticalTabsSelectorsWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
8
|
+
export declare const VerticalTabsContentWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
@@ -0,0 +1,33 @@
|
|
1
|
+
import { CSSProperties, ReactNode } from 'react';
|
2
|
+
import { ComponentType } from '../../common/types';
|
3
|
+
import { paletteColor } from '../../styles/types';
|
4
|
+
import { IconProps } from '../icon';
|
5
|
+
export declare type VerticalTabsHeaderProps = {
|
6
|
+
counter?: number;
|
7
|
+
icon?: IconProps;
|
8
|
+
text: ReactNode;
|
9
|
+
type?: ComponentType;
|
10
|
+
};
|
11
|
+
export declare type VerticalTabsItem = {
|
12
|
+
active?: boolean;
|
13
|
+
content: ReactNode | (() => JSX.Element);
|
14
|
+
header: VerticalTabsHeaderProps;
|
15
|
+
};
|
16
|
+
export interface VerticalTabsProps {
|
17
|
+
className?: string;
|
18
|
+
editMode?: boolean;
|
19
|
+
style?: CSSProperties;
|
20
|
+
tabs: VerticalTabsItem[];
|
21
|
+
}
|
22
|
+
declare type VerticalTabsPalettePart = {
|
23
|
+
color: paletteColor;
|
24
|
+
background: paletteColor;
|
25
|
+
hoverBackground: paletteColor;
|
26
|
+
activeBackground: paletteColor;
|
27
|
+
};
|
28
|
+
declare type VerticalTabsPaletteType = {
|
29
|
+
active: VerticalTabsPalettePart;
|
30
|
+
normal: VerticalTabsPalettePart;
|
31
|
+
};
|
32
|
+
export declare type VerticalTabsPalette = Record<ComponentType, VerticalTabsPaletteType>;
|
33
|
+
export {};
|