@fattureincloud/fic-design-system 0.7.40 → 0.7.41

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,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
@@ -23,6 +23,8 @@ import { MicroTag, MicroTagPalette, MicroTagProps } from './components/microTag'
23
23
  import { Modal, ModalSearchable, StepModal, StepModalBody, StepModalCommonProps, StepModalFooter, StepModalFooterProps, StepModalHeader, StepModalHeaderProps, StepModalProps } from './components/modals';
24
24
  import { ConfirmationModal } from './components/modals/confirmationModal';
25
25
  import { ModalBody } from './components/modals/modalStyled';
26
+ import { MonthlyTab } from './components/monthlyTab';
27
+ import { MonthlyTabPalette } from './components/monthlyTab/types';
26
28
  import { BulkAction, CellProps, ColumnDefType, ColumnsType, NewTable, RowAction, RowActions as NewRowActions } from './components/newTable';
27
29
  import { Column, ManualPagination, OnSelectionChange, OnSort, Row, RowActions, Table, TableData, TablePalette, TableProps, useTableValues } from './components/oldTable';
28
30
  import { PageEmptySet } from './components/pageEmptySet';
@@ -32,8 +34,8 @@ import { Tag, TagPalette, TagProps, tagTypes } from './components/tag';
32
34
  import { ThemeProvider } from './components/themeProvider';
33
35
  import { Toast, ToastPalette, toastPalette, ToastProps, ToastType } from './components/toast';
34
36
  import { Tooltip, TooltipPalette, TooltipProps } from './components/tooltip';
35
- import { VerticalTab } from './components/verticalTab';
36
37
  import { VerticalTabSelector, VerticalTabSelectorPalette, VerticalTabSelectorStatus } from './components/verticalTab/components/VerticalTabSelector';
38
+ import VerticalTab from './components/verticalTab/VerticalTab';
37
39
  import { autocompleteYellow } from './styles/defaultPalette/colors/others';
38
40
  import { Theme } from './styles/theme';
39
41
  import { Palette, paletteColor } from './styles/types';
@@ -49,4 +51,4 @@ export { Segment, SegmentButton, SegmentButtonPalette, SegmentButtonProps } from
49
51
  export { ShortcutTip, ShortcutTipProps, Tip, TipPalette, TipProps, TipType } from './components/tip';
50
52
  export { bwColor } from './styles/types';
51
53
  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, };
54
+ 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, MonthlyTab, MonthlyTabPalette, };