@fattureincloud/fic-design-system 0.7.40 → 0.7.42

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,3 @@
1
+ import { MonthlyTabProps } from './types';
2
+ declare const MonthlyTrend: ({ data, selected, selectedChange, onSelectionChange, monthText, }: MonthlyTabProps) => JSX.Element;
3
+ export default MonthlyTrend;
@@ -0,0 +1,10 @@
1
+ interface MonthProps {
2
+ monthNumber: number;
3
+ percentage: number;
4
+ selected: boolean;
5
+ documents: number;
6
+ amount: number;
7
+ monthText: string;
8
+ }
9
+ declare const Month: ({ monthNumber, percentage, selected, documents, amount, monthText }: MonthProps) => JSX.Element;
10
+ export default Month;
@@ -0,0 +1,14 @@
1
+ /// <reference types="react" />
2
+ export declare const Container: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
3
+ selected: boolean;
4
+ }, never>;
5
+ export declare const Header: import("styled-components").StyledComponent<({ children, type, ...otherProps }: import("../../../../common/components/typography/types").TextProps & import("react").HTMLAttributes<HTMLDivElement>) => JSX.Element, import("styled-components").DefaultTheme, {
6
+ selected: boolean;
7
+ }, never>;
8
+ export declare const PercentageLevel: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
9
+ percentage: number;
10
+ selected?: boolean | undefined;
11
+ }, never>;
12
+ export declare const Content: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
13
+ export declare const Expenses: 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 Amount: 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,3 @@
1
+ export { default as MonthlyTab } from './MonthlyTab';
2
+ export { MonthlyTabProps, MonthlyTabPalette, MonthData, MonthAmountData } from './types';
3
+ export { default as monthlyTabPalette } from './monthlyTabPalette';
@@ -0,0 +1,6 @@
1
+ import { Meta, Story } from '@storybook/react';
2
+ import { ComponentProps } from 'react';
3
+ import { MonthlyTab, MonthlyTabProps } from './index';
4
+ export declare const Template: Story<MonthlyTabProps>;
5
+ declare const MonthlyTabStories: Meta<ComponentProps<typeof MonthlyTab>>;
6
+ export default MonthlyTabStories;
@@ -0,0 +1,3 @@
1
+ import { MonthlyTabPalette } from './types';
2
+ declare const monthlyTabPalette: MonthlyTabPalette;
3
+ export default monthlyTabPalette;
@@ -0,0 +1,2 @@
1
+ import { MonthData } from '../types';
2
+ export declare const data: MonthData;
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ export declare const Container: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
3
+ export declare const MonthSelectionArea: import("styled-components").StyledComponent<import("react").FunctionComponent<import("@viselect/react/dist/SelectionArea").SelectionAreaProps>, import("styled-components").DefaultTheme, {}, never>;
4
+ export declare const SelectAllButton: import("styled-components").StyledComponent<({ className, color, fullWidth, href, iconLeft, iconRight, isDisabled, isLoading, onClick, size, target, text, type, }: import("../buttons").ButtonProps) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
5
+ export declare const TutorialText: 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,36 @@
1
+ /// <reference types="react" />
2
+ import { paletteColor } from '../../styles/types';
3
+ export declare type MonthAmountData = {
4
+ month: number;
5
+ monthName: string;
6
+ } & MonthDocumentAmount;
7
+ declare type MonthDocumentAmount = {
8
+ documents: number;
9
+ amount: number;
10
+ };
11
+ export declare type MonthData = {
12
+ months: MonthDocumentAmount[];
13
+ };
14
+ export interface MonthlyTabProps {
15
+ data: MonthData;
16
+ selected: Set<string>;
17
+ selectedChange: React.Dispatch<React.SetStateAction<Set<string>>>;
18
+ onSelectionChange: (monthsData: MonthAmountData[]) => void;
19
+ monthText?: string;
20
+ }
21
+ export declare type MonthlyTabPalette = {
22
+ standard: {
23
+ borderBottom: paletteColor;
24
+ headerColor: paletteColor;
25
+ };
26
+ selected: {
27
+ borderBottom: paletteColor;
28
+ headerColor: paletteColor;
29
+ };
30
+ border: paletteColor;
31
+ fill: paletteColor;
32
+ amountColor: paletteColor;
33
+ monthColor: paletteColor;
34
+ expenseColor: paletteColor;
35
+ };
36
+ export {};
@@ -0,0 +1,4 @@
1
+ export declare const toPercentages: (numbers: number[]) => number[];
2
+ export declare const extractIds: (els: Element[]) => string[];
3
+ export declare const getMonthName: (monthNumber: number) => string;
4
+ export declare const formatCurrency: Intl.NumberFormat;
package/dist/index.d.ts CHANGED
@@ -4,6 +4,7 @@ export { Body, Caption, Headline, Title1, Title2, Title3, Title4, Title5, Title6
4
4
  import { Accordion } from './components/accordions';
5
5
  import { Avatar } from './components/avatar';
6
6
  import { Button, ButtonPalette, ButtonProps, IconButton, IconButtonPalette, IconButtonProps } from './components/buttons';
7
+ import { CircularProgressBar } from './components/circularProgressBar';
7
8
  import { Drawer } from './components/drawer';
8
9
  import { closeDropdownType, Dropdown, DropdownItemProps, DropdownItemType, DropdownPalette, renderContentType } from './components/dropdown';
9
10
  import { Checkbox, CheckboxPalette, CheckboxProps, CheckboxStatus, useCheckboxValue } from './components/form/checkbox';
@@ -23,6 +24,8 @@ import { MicroTag, MicroTagPalette, MicroTagProps } from './components/microTag'
23
24
  import { Modal, ModalSearchable, StepModal, StepModalBody, StepModalCommonProps, StepModalFooter, StepModalFooterProps, StepModalHeader, StepModalHeaderProps, StepModalProps } from './components/modals';
24
25
  import { ConfirmationModal } from './components/modals/confirmationModal';
25
26
  import { ModalBody } from './components/modals/modalStyled';
27
+ import { MonthlyTab } from './components/monthlyTab';
28
+ import { MonthlyTabPalette } from './components/monthlyTab/types';
26
29
  import { BulkAction, CellProps, ColumnDefType, ColumnsType, NewTable, RowAction, RowActions as NewRowActions } from './components/newTable';
27
30
  import { Column, ManualPagination, OnSelectionChange, OnSort, Row, RowActions, Table, TableData, TablePalette, TableProps, useTableValues } from './components/oldTable';
28
31
  import { PageEmptySet } from './components/pageEmptySet';
@@ -32,8 +35,8 @@ import { Tag, TagPalette, TagProps, tagTypes } from './components/tag';
32
35
  import { ThemeProvider } from './components/themeProvider';
33
36
  import { Toast, ToastPalette, toastPalette, ToastProps, ToastType } from './components/toast';
34
37
  import { Tooltip, TooltipPalette, TooltipProps } from './components/tooltip';
35
- import { VerticalTab } from './components/verticalTab';
36
38
  import { VerticalTabSelector, VerticalTabSelectorPalette, VerticalTabSelectorStatus } from './components/verticalTab/components/VerticalTabSelector';
39
+ import VerticalTab from './components/verticalTab/VerticalTab';
37
40
  import { autocompleteYellow } from './styles/defaultPalette/colors/others';
38
41
  import { Theme } from './styles/theme';
39
42
  import { Palette, paletteColor } from './styles/types';
@@ -49,4 +52,4 @@ export { Segment, SegmentButton, SegmentButtonPalette, SegmentButtonProps } from
49
52
  export { ShortcutTip, ShortcutTipProps, Tip, TipPalette, TipProps, TipType } from './components/tip';
50
53
  export { bwColor } from './styles/types';
51
54
  export { Card, CardColor, CardPalette, CardProps, CardElevation, CardType } from './components/card';
52
- export { NewTable, Table, ColumnsType, ColumnDefType, CellProps, BulkAction, NewRowActions, RowAction, autocompleteYellow, paletteColor, Avatar, Button, ButtonProps, ButtonPalette, IconButton, IconButtonProps, IconButtonPalette, Icon, IconProps, IconPalette, iconColors, IconBackground, IconBackgroundPalette, TableProps, TableData, VerticalTab, VerticalTabSelector, VerticalTabSelectorStatus, VerticalTabSelectorPalette, useTableValues, Row, Column, TablePalette, RowActions, ManualPagination, OnSelectionChange, OnSort, Checkbox, useCheckboxValue, CheckboxProps, CheckboxPalette, CheckboxStatus, Select, CreatableSelect, AsyncSelect, AsyncCreatableSelect, SelectProps, AsyncSelectProps, AsyncCreatableSelectProps, useSelectSimpleValue, isSimpleValue, simpleValue, CreatableSelectProps, useSelectValue, useSelectMultiValues, SelectPalette, SelectComponentsType, OptionType, PageEmptySet, Modal, ModalBody, ModalSearchable, StepModal, StepModalBody, StepModalCommonProps, StepModalFooter, StepModalFooterProps, StepModalHeader, StepModalHeaderProps, StepModalProps, Tooltip, TooltipProps, TooltipPalette, Accordion, Drawer, Radio, useRadioValue, RadioProps, RadioPalette, RadioStatus, RadioGroup, RadioGroupProps, RadioGroupOptions, InlineMessage, InlineMessageProps, InlineMessagePalette, InlineMessageType, Dropdown, DropdownItemProps, DropdownPalette, DropdownItemType, closeDropdownType, renderContentType, DropdownTabs, ScrollableTabs, TabsItem, Stepper, StepperProps, StepperPalette, ThemeProvider, Theme, Palette, GroupedList, ItemType, GroupType, Toast, ToastProps, toastPalette, ToastPalette, ToastType, ConfirmationModal, MicroTag, MicroTagProps, MicroTagPalette, Tag, TagProps, TagPalette, tagTypes, InputText, InputCode, InputTelephone, InputTextProps, InputCodeProps, InputTelephoneProps, InputTextPalette, UnitDropdownProps, DatePickerProps, DatePickerPalette, DatePicker, useFormattedDate, timeConversionOptions, InputHelper, InputHelperProps, InputHelperPalette, TextArea, TextAreaProps, TextAreaPalette, FileUploader, FileUploaderProps, FileUploaderPalette, FileRejection, fileUploaderOnDrop, Spinner, EditableInput, };
55
+ export { NewTable, Table, CircularProgressBar, ColumnsType, ColumnDefType, CellProps, BulkAction, NewRowActions, RowAction, autocompleteYellow, paletteColor, Avatar, Button, ButtonProps, ButtonPalette, IconButton, IconButtonProps, IconButtonPalette, Icon, IconProps, IconPalette, iconColors, IconBackground, IconBackgroundPalette, TableProps, TableData, VerticalTab, VerticalTabSelector, VerticalTabSelectorStatus, VerticalTabSelectorPalette, useTableValues, Row, Column, TablePalette, RowActions, ManualPagination, OnSelectionChange, OnSort, Checkbox, useCheckboxValue, CheckboxProps, CheckboxPalette, CheckboxStatus, Select, CreatableSelect, AsyncSelect, AsyncCreatableSelect, SelectProps, AsyncSelectProps, AsyncCreatableSelectProps, useSelectSimpleValue, isSimpleValue, simpleValue, CreatableSelectProps, useSelectValue, useSelectMultiValues, SelectPalette, SelectComponentsType, OptionType, PageEmptySet, Modal, ModalBody, ModalSearchable, StepModal, StepModalBody, StepModalCommonProps, StepModalFooter, StepModalFooterProps, StepModalHeader, StepModalHeaderProps, StepModalProps, Tooltip, TooltipProps, TooltipPalette, Accordion, Drawer, Radio, useRadioValue, RadioProps, RadioPalette, RadioStatus, RadioGroup, RadioGroupProps, RadioGroupOptions, InlineMessage, InlineMessageProps, InlineMessagePalette, InlineMessageType, Dropdown, DropdownItemProps, DropdownPalette, DropdownItemType, closeDropdownType, renderContentType, DropdownTabs, ScrollableTabs, TabsItem, Stepper, StepperProps, StepperPalette, ThemeProvider, Theme, Palette, GroupedList, ItemType, GroupType, Toast, ToastProps, toastPalette, ToastPalette, ToastType, ConfirmationModal, MicroTag, MicroTagProps, MicroTagPalette, Tag, TagProps, TagPalette, tagTypes, InputText, InputCode, InputTelephone, InputTextProps, InputCodeProps, InputTelephoneProps, InputTextPalette, UnitDropdownProps, DatePickerProps, DatePickerPalette, DatePicker, useFormattedDate, timeConversionOptions, InputHelper, InputHelperProps, InputHelperPalette, TextArea, TextAreaProps, TextAreaPalette, FileUploader, FileUploaderProps, FileUploaderPalette, FileRejection, fileUploaderOnDrop, Spinner, EditableInput, MonthlyTab, MonthlyTabPalette, };