@fattureincloud/fic-design-system 0.3.14 → 0.3.16
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/components/banner/Banner.d.ts +3 -2
- package/dist/components/banner/index.d.ts +2 -0
- package/dist/components/buttons/index.d.ts +3 -1
- package/dist/components/checkbox/index.d.ts +2 -2
- package/dist/components/dropdown/index.d.ts +2 -2
- package/dist/components/dropdown/types.d.ts +1 -0
- package/dist/components/icon/index.d.ts +3 -2
- package/dist/components/layout/index.d.ts +2 -0
- package/dist/components/layout/sidebar/components/sidebarItem/SidebarItem.d.ts +31 -0
- package/dist/components/layout/sidebar/components/sidebarItem/components/SidebarItemCaret.d.ts +6 -0
- package/dist/components/layout/sidebar/components/sidebarItem/components/SidebarItemDropdown.d.ts +8 -0
- package/dist/components/layout/sidebar/components/sidebarItem/utils.d.ts +7 -0
- package/dist/components/layout/sidebarItem/SidebarItem.d.ts +22 -0
- package/dist/components/layout/sidebarItem/components/SidebarItemCaret.d.ts +6 -0
- package/dist/components/layout/sidebarItem/components/SidebarItemDropdown.d.ts +8 -0
- package/dist/components/layout/sidebarItem/index.d.ts +4 -0
- package/dist/components/layout/sidebarItem/sidebarItemPalette.d.ts +14 -0
- package/dist/components/layout/sidebarItem/utils.d.ts +8 -0
- package/dist/components/microTag/index.d.ts +2 -1
- package/dist/components/tag/index.d.ts +2 -3
- package/dist/components/tooltip/Arrow.d.ts +4 -1
- package/dist/components/tooltip/index.d.ts +2 -2
- package/dist/index.d.ts +5 -4
- package/dist/index.esm.js +908 -813
- package/dist/index.js +907 -811
- package/dist/styles/theme.d.ts +9 -9
- package/package.json +1 -1
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { IconProps } from '../icon';
|
|
3
3
|
export declare type bannerColorType = 'red' | 'blue' | 'yellow' | 'green' | 'grey' | undefined;
|
|
4
|
-
export interface
|
|
4
|
+
export interface BannerProps {
|
|
5
5
|
color?: bannerColorType;
|
|
6
6
|
onClose?: () => void;
|
|
7
7
|
content: string | JSX.Element;
|
|
8
8
|
icon?: IconProps;
|
|
9
9
|
}
|
|
10
|
-
|
|
10
|
+
declare const Banner: ({ color, content, icon, onClose }: BannerProps) => JSX.Element;
|
|
11
|
+
export default Banner;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
import Button, { ButtonProps } from './button/Button';
|
|
2
|
+
import buttonPalette, { ButtonPalette } from './button/buttonPalette';
|
|
2
3
|
import IconButton, { IconButtonProps } from './iconButton/IconButton';
|
|
3
|
-
|
|
4
|
+
import iconButtonPalette, { IconButtonPalette } from './iconButton/iconButtonPalette';
|
|
5
|
+
export { Button, IconButton, ButtonProps, IconButtonProps, buttonPalette, ButtonPalette, iconButtonPalette, IconButtonPalette, };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import Checkbox, { CheckboxProps } from './Checkbox';
|
|
2
|
-
import { CheckboxPalette } from './checkboxPalette';
|
|
2
|
+
import checkboxPalette, { CheckboxPalette } from './checkboxPalette';
|
|
3
3
|
import useCheckboxValue from './hooks/useCheckboxValue';
|
|
4
|
-
export { Checkbox, useCheckboxValue, CheckboxProps, CheckboxPalette };
|
|
4
|
+
export { Checkbox, useCheckboxValue, CheckboxProps, checkboxPalette, CheckboxPalette };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import Dropdown from './dropdown';
|
|
2
|
-
import { DropdownPalette } from './dropdownPalette';
|
|
2
|
+
import dropdownPalette, { DropdownPalette } from './dropdownPalette';
|
|
3
3
|
import { closeDropdownType, DropdownItemProps } from './types';
|
|
4
|
-
export { Dropdown, closeDropdownType, DropdownPalette, DropdownItemProps };
|
|
4
|
+
export { Dropdown, closeDropdownType, dropdownPalette, DropdownPalette, DropdownItemProps };
|
|
@@ -17,6 +17,7 @@ export declare type DropdownProps = {
|
|
|
17
17
|
fullWidth?: boolean;
|
|
18
18
|
placement?: Placement;
|
|
19
19
|
minWidthAsTrigger?: boolean;
|
|
20
|
+
forceOpen?: boolean;
|
|
20
21
|
alignRight?: boolean;
|
|
21
22
|
};
|
|
22
23
|
export declare type DropdownItemType = 'default' | 'danger' | 'success' | 'warning' | 'link';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { IconBackground, IconBackgroundPalette, iconBackgroundPalette } from './components/iconBackground';
|
|
1
2
|
import Icon, { IconProps } from './Icon';
|
|
2
|
-
import { IconPalette } from './iconPalette';
|
|
3
|
-
export { Icon, IconProps, IconPalette };
|
|
3
|
+
import iconPalette, { IconPalette } from './iconPalette';
|
|
4
|
+
export { Icon, IconProps, IconPalette, iconPalette, IconBackground, iconBackgroundPalette, IconBackgroundPalette };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { DropdownItemProps } from 'components/dropdown';
|
|
2
|
+
import { IconProps } from 'components/icon';
|
|
3
|
+
import { MouseEventHandler } from 'react';
|
|
4
|
+
import { paletteColor } from "../../../../../styles/types";
|
|
5
|
+
interface Props {
|
|
6
|
+
icon?: IconProps;
|
|
7
|
+
title: string;
|
|
8
|
+
isDisabled?: boolean;
|
|
9
|
+
isHidden?: boolean;
|
|
10
|
+
onClick?: MouseEventHandler;
|
|
11
|
+
isOpen?: boolean;
|
|
12
|
+
caretVisible?: boolean;
|
|
13
|
+
dropdownContent?: DropdownItemProps[];
|
|
14
|
+
className?: string;
|
|
15
|
+
isActive?: boolean;
|
|
16
|
+
}
|
|
17
|
+
export declare const sidebarItemHeight = 40;
|
|
18
|
+
declare const SidebarItem: ({ caretVisible, className, dropdownContent, icon, isActive, isDisabled, isHidden, isOpen, onClick, title, }: Props) => JSX.Element | null;
|
|
19
|
+
export interface WrapperProps {
|
|
20
|
+
isActive: boolean;
|
|
21
|
+
isDisabled: boolean;
|
|
22
|
+
}
|
|
23
|
+
export interface SidebarItemStyles {
|
|
24
|
+
color: paletteColor;
|
|
25
|
+
background: paletteColor;
|
|
26
|
+
hoverColor: paletteColor;
|
|
27
|
+
hoverBackground: paletteColor;
|
|
28
|
+
dropdownHover: paletteColor;
|
|
29
|
+
dropdownActive: paletteColor;
|
|
30
|
+
}
|
|
31
|
+
export default SidebarItem;
|
package/dist/components/layout/sidebar/components/sidebarItem/components/SidebarItemDropdown.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { DropdownItemProps } from '../../../../../dropdown';
|
|
3
|
+
interface Props {
|
|
4
|
+
content: DropdownItemProps[];
|
|
5
|
+
className?: string;
|
|
6
|
+
}
|
|
7
|
+
declare const SidebarItemDropdown: ({ className, content }: Props) => JSX.Element;
|
|
8
|
+
export default SidebarItemDropdown;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { DefaultTheme } from 'styled-components';
|
|
2
|
+
import { SidebarItemStyles, WrapperProps } from './SidebarItem';
|
|
3
|
+
interface GetSidebarItemStylesParams extends WrapperProps {
|
|
4
|
+
theme: DefaultTheme;
|
|
5
|
+
}
|
|
6
|
+
export declare const getSidebarItemStyles: ({ isActive, isDisabled, theme: { palette }, }: GetSidebarItemStylesParams) => SidebarItemStyles;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { MouseEventHandler } from 'react';
|
|
2
|
+
import { DropdownItemProps } from '../../dropdown';
|
|
3
|
+
import { IconProps } from './../../icon';
|
|
4
|
+
interface Props {
|
|
5
|
+
icon?: IconProps;
|
|
6
|
+
title: string;
|
|
7
|
+
isDisabled?: boolean;
|
|
8
|
+
isHidden?: boolean;
|
|
9
|
+
onClick?: MouseEventHandler;
|
|
10
|
+
isOpen?: boolean;
|
|
11
|
+
caretVisible?: boolean;
|
|
12
|
+
dropdownContent?: DropdownItemProps[];
|
|
13
|
+
className?: string;
|
|
14
|
+
isActive?: boolean;
|
|
15
|
+
}
|
|
16
|
+
export declare const sidebarItemHeight = 44;
|
|
17
|
+
declare const SidebarItem: ({ caretVisible, className, dropdownContent, icon, isActive, isDisabled, isHidden, isOpen, onClick, title, }: Props) => JSX.Element | null;
|
|
18
|
+
export interface WrapperProps {
|
|
19
|
+
isActive: boolean;
|
|
20
|
+
isDisabled: boolean;
|
|
21
|
+
}
|
|
22
|
+
export default SidebarItem;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { DropdownItemProps } from '../../../dropdown';
|
|
3
|
+
interface Props {
|
|
4
|
+
content: DropdownItemProps[];
|
|
5
|
+
className?: string;
|
|
6
|
+
}
|
|
7
|
+
declare const SidebarItemDropdown: ({ className, content }: Props) => JSX.Element;
|
|
8
|
+
export default SidebarItemDropdown;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import SidebarItemDropdown from './components/SidebarItemDropdown';
|
|
2
|
+
import SidebarItem, { sidebarItemHeight } from './SidebarItem';
|
|
3
|
+
import sidebarItemPalette, { SidebarItemPalette } from './sidebarItemPalette';
|
|
4
|
+
export { SidebarItem, sidebarItemHeight, sidebarItemPalette, SidebarItemPalette, SidebarItemDropdown };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { colorsPalette } from '../../../common/types/colorsPalette';
|
|
2
|
+
import { paletteColor } from '../../../styles/types';
|
|
3
|
+
declare type statusType = 'normal' | 'active' | 'disabled';
|
|
4
|
+
export interface SidebarItemStyles extends colorsPalette {
|
|
5
|
+
hoverColor: paletteColor;
|
|
6
|
+
hoverBackground: paletteColor;
|
|
7
|
+
dropdownHover: paletteColor;
|
|
8
|
+
dropdownActive: paletteColor;
|
|
9
|
+
}
|
|
10
|
+
export declare type SidebarItemPalette = {
|
|
11
|
+
[key in statusType]: SidebarItemStyles;
|
|
12
|
+
};
|
|
13
|
+
declare const sidebarItemPalette: SidebarItemPalette;
|
|
14
|
+
export default sidebarItemPalette;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { DefaultTheme } from 'styled-components';
|
|
2
|
+
import { WrapperProps } from './SidebarItem';
|
|
3
|
+
import { SidebarItemStyles } from './sidebarItemPalette';
|
|
4
|
+
interface GetSidebarItemStylesParams extends WrapperProps {
|
|
5
|
+
theme: DefaultTheme;
|
|
6
|
+
}
|
|
7
|
+
export declare const getSidebarItemStyles: ({ isActive, isDisabled, theme, }: GetSidebarItemStylesParams) => SidebarItemStyles;
|
|
8
|
+
export {};
|
|
@@ -1,2 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import { tooltipTypes } from './tooltipPalette';
|
|
2
|
+
export declare const Arrow: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
3
|
+
type: tooltipTypes;
|
|
4
|
+
}, never>;
|
|
2
5
|
export declare const arrowStyle: import("styled-components").FlattenSimpleInterpolation;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import Tooltip, { TooltipProps } from './Tooltip';
|
|
2
|
-
import { TooltipPalette } from './tooltipPalette';
|
|
3
|
-
export { Tooltip, TooltipProps, TooltipPalette };
|
|
2
|
+
import tooltipPalette, { TooltipPalette } from './tooltipPalette';
|
|
3
|
+
export { Tooltip, TooltipProps, tooltipPalette, TooltipPalette };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Accordion } from './components/accordions';
|
|
2
2
|
import { Avatar } from './components/avatar';
|
|
3
3
|
import { Badge } from './components/badge/Badge';
|
|
4
|
-
import { Banner,
|
|
4
|
+
import { Banner, BannerProps } from './components/banner';
|
|
5
5
|
import { Button, ButtonProps, IconButton, IconButtonProps } from './components/buttons';
|
|
6
6
|
import { Checkbox, CheckboxPalette, CheckboxProps, useCheckboxValue } from './components/checkbox';
|
|
7
7
|
import { Chip } from './components/chips';
|
|
@@ -11,10 +11,11 @@ import { WithBadge } from './components/floatingBadge';
|
|
|
11
11
|
import { GroupedList } from './components/groupedList';
|
|
12
12
|
import { RadioButtonGroup } from './components/groupRadioButton';
|
|
13
13
|
import { Icon, IconPalette, IconProps } from './components/icon';
|
|
14
|
-
import { IconBackground, IconBackgroundPalette
|
|
14
|
+
import { IconBackground, IconBackgroundPalette } from './components/icon/components/iconBackground';
|
|
15
15
|
import { InlineMessage } from './components/inlineMessages';
|
|
16
16
|
import { InputText } from './components/inputText';
|
|
17
17
|
import { EInputErrorTypes, EInputSize, EInputTags, EInputTypes } from './components/inputText/typings/enums';
|
|
18
|
+
import { SidebarItem, sidebarItemHeight, SidebarItemPalette } from './components/layout';
|
|
18
19
|
import { MicroTag } from './components/microTag';
|
|
19
20
|
import { Modal, ModalSearchable } from './components/modals';
|
|
20
21
|
import { ConfirmationModal } from './components/modals/confirmationModal';
|
|
@@ -27,7 +28,7 @@ import { Select, SelectAsync, SelectCreatable } from './components/select';
|
|
|
27
28
|
import { StepBar } from './components/stepBar';
|
|
28
29
|
import { Table } from './components/table';
|
|
29
30
|
import { DropdownTabs, ScrollableTabs, TabsItem } from './components/tabs';
|
|
30
|
-
import { Tag } from './components/tag
|
|
31
|
+
import { Tag } from './components/tag';
|
|
31
32
|
import { TextButton } from './components/textButton';
|
|
32
33
|
import { ThemeProvider } from './components/themeProvider';
|
|
33
34
|
import { ShortcutTip, Tip } from './components/tip';
|
|
@@ -35,4 +36,4 @@ import { Toast } from './components/toast';
|
|
|
35
36
|
import { Tooltip, TooltipPalette, TooltipProps } from './components/tooltip';
|
|
36
37
|
import { Theme } from './styles/theme';
|
|
37
38
|
import { Palette, paletteColor } from './styles/types';
|
|
38
|
-
export { paletteColor, Avatar, Banner, BannerProps, Button, ButtonProps, IconButton, IconButtonProps, Icon, IconProps, IconPalette, IconBackground,
|
|
39
|
+
export { paletteColor, Avatar, Banner, BannerProps, Button, ButtonProps, IconButton, IconButtonProps, Icon, IconProps, IconPalette, IconBackground, IconBackgroundPalette, Table, Checkbox, useCheckboxValue, CheckboxProps, CheckboxPalette, Select, SelectCreatable, SelectAsync, InputText, EInputErrorTypes, EInputSize, EInputTypes, PageEmptySet, Modal, ModalBody, ModalSearchable, Tooltip, TooltipProps, TooltipPalette, Accordion, Progressbar, Drawer, StepBar, Chip, RadioButton, RadioButtonGroup, InlineMessage, Badge, Dropdown, DropdownItemProps, DropdownPalette, closeDropdownType, DropdownTabs, ScrollableTabs, SidebarItem, sidebarItemHeight, SidebarItemPalette, TabsItem, Tip, ShortcutTip, ThemeProvider, Theme, Palette, GroupedList, WithBadge, Pagination, Toast, EInputTags, ConfirmationModal, TextButton, MicroTag, Tag, };
|