@fattureincloud/fic-design-system 0.4.29 → 0.4.31
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/CHANGELOG.md +30 -0
- package/dist/components/dropdown/index.d.ts +2 -2
- package/dist/components/icon/index.d.ts +2 -2
- package/dist/components/table/Table.d.ts +3 -1
- package/dist/components/table/hooks/useTableHooks.d.ts +2 -2
- package/dist/components/tabs/common/Item.d.ts +1 -1
- package/dist/components/tabs/common/types.d.ts +3 -0
- package/dist/components/tag/index.d.ts +2 -2
- package/dist/index.d.ts +15 -13
- package/dist/index.esm.js +5 -5
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,35 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## v0.4.31 - 11/10/2022
|
|
4
|
+
|
|
5
|
+
### 🚀 Added
|
|
6
|
+
|
|
7
|
+
- exports:
|
|
8
|
+
• ButtonPalette,
|
|
9
|
+
• DropdownItemType,
|
|
10
|
+
• iconColors,
|
|
11
|
+
• tagTypes,
|
|
12
|
+
• BadgePalette,
|
|
13
|
+
• BannerPalette,
|
|
14
|
+
• ChipPalette,
|
|
15
|
+
• FloatingBadgePalette,
|
|
16
|
+
• LabelPalette,
|
|
17
|
+
• PaginationPalette,
|
|
18
|
+
• ProgressBarPalette,
|
|
19
|
+
• bwColor,
|
|
20
|
+
• IconButtonPalette
|
|
21
|
+
|
|
22
|
+
## v0.4.30 - 29/09/2022
|
|
23
|
+
|
|
24
|
+
### 🚀 Added
|
|
25
|
+
|
|
26
|
+
- Tabs badge
|
|
27
|
+
- Table actionsHeader
|
|
28
|
+
|
|
29
|
+
### 🐛 Bug Fix
|
|
30
|
+
|
|
31
|
+
- Table text selection restored
|
|
32
|
+
|
|
3
33
|
## v0.4.29 - 14/09/2022
|
|
4
34
|
|
|
5
35
|
### 💥 Breaking
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import Dropdown from './dropdown';
|
|
2
2
|
import dropdownPalette, { DropdownPalette } from './dropdownPalette';
|
|
3
|
-
import { closeDropdownType, DropdownItemProps, renderContentType } from './types';
|
|
4
|
-
export { Dropdown, closeDropdownType, renderContentType, dropdownPalette, DropdownPalette, DropdownItemProps };
|
|
3
|
+
import { closeDropdownType, DropdownItemProps, DropdownItemType, renderContentType } from './types';
|
|
4
|
+
export { Dropdown, closeDropdownType, renderContentType, dropdownPalette, DropdownPalette, DropdownItemProps, DropdownItemType, };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { IconBackground, IconBackgroundPalette, iconBackgroundPalette } from './components/iconBackground';
|
|
2
2
|
import Icon, { IconProps } from './Icon';
|
|
3
|
-
import iconPalette, { IconPalette } from './iconPalette';
|
|
4
|
-
export { Icon, IconProps, IconPalette, iconPalette, IconBackground, iconBackgroundPalette, IconBackgroundPalette };
|
|
3
|
+
import iconPalette, { iconColors, IconPalette } from './iconPalette';
|
|
4
|
+
export { Icon, IconProps, IconPalette, iconPalette, IconBackground, iconBackgroundPalette, IconBackgroundPalette, iconColors, };
|
|
@@ -21,6 +21,7 @@ export interface TableProps<T extends TableData> extends UseTableOptions<T> {
|
|
|
21
21
|
isLoading?: boolean;
|
|
22
22
|
actions?: RowActions<T>;
|
|
23
23
|
renderActions?: () => JSX.Element;
|
|
24
|
+
actionsHeader?: string | JSX.Element;
|
|
24
25
|
bodyHeight?: number | string;
|
|
25
26
|
headerHeight?: number | string;
|
|
26
27
|
rowHeight?: number | string;
|
|
@@ -46,10 +47,11 @@ export interface TableProps<T extends TableData> extends UseTableOptions<T> {
|
|
|
46
47
|
* @param {boolean} isLoading Apply loading style to all cells
|
|
47
48
|
* @param {object} actions Configuration to render actions column
|
|
48
49
|
* @param {function} renderActions Used to customize actions column
|
|
50
|
+
* @param {string | JSX.Element} actionsHeader Used to customize actions header
|
|
49
51
|
* @param {number|string} bodyHeight Set tbody height, default 300px
|
|
50
52
|
* @param {number|string} headerHeight Set thead and th height, default 40px
|
|
51
53
|
* @param {number|string} rowHeight Set row height, default 40px
|
|
52
54
|
* @param {boolean} disableArrowNavigation Used to turn off Up/Down row selection and Enter click
|
|
53
55
|
*/
|
|
54
|
-
declare const Table: <T extends TableData>({ actions, bodyHeight, columns, data, EmptyPage, Footer, globalFilter: externalGlobalFilter, headerHeight, hideHeader, isLoading, manualPagination, noPagination, onRowClick, onScroll, onSelectionChange, onSort, preSelectAllRows, renderActions, rowHeight, selectableRows, sortable, withCheckbox, pageSize, disableArrowNavigation, }: TableProps<T>) => JSX.Element;
|
|
56
|
+
declare const Table: <T extends TableData>({ actions, bodyHeight, columns, data, EmptyPage, Footer, globalFilter: externalGlobalFilter, headerHeight, hideHeader, isLoading, manualPagination, noPagination, onRowClick, onScroll, onSelectionChange, onSort, preSelectAllRows, renderActions, actionsHeader, rowHeight, selectableRows, sortable, withCheckbox, pageSize, disableArrowNavigation, }: TableProps<T>) => JSX.Element;
|
|
55
57
|
export default Table;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PluginHook } from 'react-table';
|
|
2
2
|
import { TableProps } from '../Table';
|
|
3
3
|
import { TableData } from '../types';
|
|
4
|
-
declare type Props<T extends TableData> = Pick<TableProps<T>, 'actions' | 'withCheckbox' | 'renderActions' | 'selectableRows'>;
|
|
5
|
-
declare const useTableHooks: <T extends TableData>({ actions, renderActions, withCheckbox, selectableRows, }: Props<T>) => PluginHook<T>[];
|
|
4
|
+
declare type Props<T extends TableData> = Pick<TableProps<T>, 'actions' | 'withCheckbox' | 'renderActions' | 'selectableRows' | 'actionsHeader'>;
|
|
5
|
+
declare const useTableHooks: <T extends TableData>({ actions, renderActions, withCheckbox, selectableRows, actionsHeader, }: Props<T>) => PluginHook<T>[];
|
|
6
6
|
export default useTableHooks;
|
|
@@ -3,5 +3,5 @@ import { TabsItem } from './types';
|
|
|
3
3
|
interface Props extends TabsItem {
|
|
4
4
|
tabRef?: () => RefObject<HTMLDivElement>;
|
|
5
5
|
}
|
|
6
|
-
declare const Item: ({ active, handleClick, tabRef, text, tooltip }: Props) => JSX.Element;
|
|
6
|
+
declare const Item: ({ active, handleClick, tabRef, text, tooltip, badge }: Props) => JSX.Element;
|
|
7
7
|
export default Item;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { WithBadgeProps } from '../../floatingBadge/types';
|
|
2
3
|
import { TooltipProps } from '../../tooltip';
|
|
3
4
|
export interface TabsProps {
|
|
4
5
|
className?: string;
|
|
@@ -6,9 +7,11 @@ export interface TabsProps {
|
|
|
6
7
|
distance?: number;
|
|
7
8
|
lateralPadding?: number;
|
|
8
9
|
}
|
|
10
|
+
export declare type TabsBadgeProps = Omit<WithBadgeProps, 'children'>;
|
|
9
11
|
export interface TabsItem {
|
|
10
12
|
text: string | JSX.Element;
|
|
11
13
|
active?: boolean;
|
|
12
14
|
handleClick?: () => void;
|
|
13
15
|
tooltip?: TooltipProps;
|
|
16
|
+
badge?: TabsBadgeProps;
|
|
14
17
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Tag } from './Tag';
|
|
2
|
-
import tagPalette, { TagPalette } from './tagPalette';
|
|
2
|
+
import tagPalette, { TagPalette, tagTypes } from './tagPalette';
|
|
3
3
|
import { TagProps } from './types';
|
|
4
|
-
export { Tag, TagProps, tagPalette, TagPalette };
|
|
4
|
+
export { Tag, TagProps, tagPalette, TagPalette, tagTypes };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
import Spinner from './common/components/Spinner';
|
|
2
2
|
import { Accordion } from './components/accordions';
|
|
3
3
|
import { Avatar } from './components/avatar';
|
|
4
|
-
|
|
5
|
-
export { Badge, BadgeProps, BadgeType } from './components/badge';
|
|
6
|
-
import { Button, ButtonProps, IconButton, IconButtonProps } from './components/buttons';
|
|
7
|
-
export { Chip, ChipType } from './components/chip';
|
|
4
|
+
import { Button, ButtonPalette, ButtonProps, IconButton, IconButtonPalette, IconButtonProps } from './components/buttons';
|
|
8
5
|
import { Drawer } from './components/drawer';
|
|
9
|
-
import { closeDropdownType, Dropdown, DropdownItemProps, DropdownPalette, renderContentType } from './components/dropdown';
|
|
10
|
-
export { NotificationBadge, WithBadge, FloatingBadgeType } from './components/floatingBadge';
|
|
6
|
+
import { closeDropdownType, Dropdown, DropdownItemProps, DropdownItemType, DropdownPalette, renderContentType } from './components/dropdown';
|
|
11
7
|
import { Checkbox, CheckboxPalette, CheckboxProps, CheckboxStatus, useCheckboxValue } from './components/form/checkbox';
|
|
12
8
|
import { DatePicker, DatePickerPalette, DatePickerProps, timeConversionOptions, useFormattedDate } from './components/form/datepicker';
|
|
13
9
|
import { FileRejection, FileUploader, fileUploaderOnDrop, FileUploaderPalette, FileUploaderProps } from './components/form/fileUploader';
|
|
@@ -18,26 +14,32 @@ import { RadioGroup, RadioGroupOptions, RadioGroupProps } from './components/for
|
|
|
18
14
|
import { AsyncCreatableSelect, AsyncCreatableSelectProps, AsyncSelect, AsyncSelectProps, CreatableSelect, CreatableSelectProps, isSimpleValue, OptionType, Select, SelectComponentsType, SelectPalette, SelectProps, simpleValue, useSelectMultiValues, useSelectSimpleValue, useSelectValue } from './components/form/select';
|
|
19
15
|
import { TextArea, TextAreaPalette, TextAreaProps } from './components/form/textArea';
|
|
20
16
|
import { GroupedList, GroupType, ItemType } from './components/groupedList';
|
|
21
|
-
import { Icon, IconPalette, IconProps } from './components/icon';
|
|
17
|
+
import { Icon, iconColors, IconPalette, IconProps } from './components/icon';
|
|
22
18
|
import { IconBackground, IconBackgroundPalette } from './components/icon/components/iconBackground';
|
|
23
19
|
import { InlineMessage, InlineMessagePalette, InlineMessageProps, InlineMessageType } from './components/inlineMessage';
|
|
24
|
-
export { CustomSidebarItemProps, SidebarItem, sidebarItemHeight, SidebarItemPalette, SidebarItemProps, SidebarBadgeConfigType, SidebarBadgeConfigProps, } from './components/layout';
|
|
25
20
|
import { MicroTag, MicroTagPalette, MicroTagProps } from './components/microTag';
|
|
26
21
|
import { Modal, ModalSearchable } from './components/modals';
|
|
27
22
|
import { ConfirmationModal } from './components/modals/confirmationModal';
|
|
28
23
|
import { ModalBody } from './components/modals/modalStyled';
|
|
29
24
|
import { PageEmptySet } from './components/pageEmptySet';
|
|
30
|
-
export { Pagination, PaginationType } from './components/pagination';
|
|
31
|
-
export { ProgressBar, ProgressBarType } from './components/progressbar';
|
|
32
25
|
import { Stepper, StepperPalette, StepperProps } from './components/stepper';
|
|
33
26
|
import { Column, ManualPagination, OnSelectionChange, OnSort, Row, RowActions, Table, TableData, TablePalette, TableProps, useTableValues } from './components/table';
|
|
34
27
|
import { DropdownTabs, ScrollableTabs, TabsItem } from './components/tabs';
|
|
35
|
-
import { Tag, TagPalette, TagProps } from './components/tag';
|
|
28
|
+
import { Tag, TagPalette, TagProps, tagTypes } from './components/tag';
|
|
36
29
|
import { ThemeProvider } from './components/themeProvider';
|
|
37
|
-
export { ShortcutTip, ShortcutTipProps, Tip, TipPalette, TipProps, TipType } from './components/tip';
|
|
38
30
|
import { Toast, ToastPalette, toastPalette, ToastProps, ToastType } from './components/toast';
|
|
39
31
|
import { Tooltip, TooltipPalette, TooltipProps } from './components/tooltip';
|
|
40
32
|
import { autocompleteYellow } from './styles/defaultPalette/colors/others';
|
|
41
33
|
import { Theme } from './styles/theme';
|
|
42
34
|
import { Palette, paletteColor } from './styles/types';
|
|
43
|
-
export {
|
|
35
|
+
export { Badge, BadgeProps, BadgeType, BadgePalette } from './components/badge';
|
|
36
|
+
export { Banner, BannerProps, BannerType, BannerPalette } from './components/banner';
|
|
37
|
+
export { Chip, ChipType, ChipPalette, ChipProps } from './components/chip';
|
|
38
|
+
export { FloatingBadgePalette, FloatingBadgeType, NotificationBadge, WithBadge } from './components/floatingBadge';
|
|
39
|
+
export { LabelPalette } from './components/form/label';
|
|
40
|
+
export { CustomSidebarItemProps, SidebarBadgeConfigProps, SidebarBadgeConfigType, SidebarItem, sidebarItemHeight, SidebarItemPalette, SidebarItemProps, } from './components/layout';
|
|
41
|
+
export { Pagination, PaginationPalette, PaginationType } from './components/pagination';
|
|
42
|
+
export { ProgressBar, ProgressBarPalette, ProgressBarProps, ProgressBarType } from './components/progressbar';
|
|
43
|
+
export { ShortcutTip, ShortcutTipProps, Tip, TipPalette, TipProps, TipType } from './components/tip';
|
|
44
|
+
export { bwColor } from './styles/types';
|
|
45
|
+
export { autocompleteYellow, paletteColor, Avatar, Button, ButtonProps, ButtonPalette, IconButton, IconButtonProps, IconButtonPalette, Icon, IconProps, IconPalette, iconColors, IconBackground, IconBackgroundPalette, Table, TableProps, TableData, 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, 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, InputTextProps, InputTextPalette, UnitDropdownProps, DatePickerProps, DatePickerPalette, DatePicker, useFormattedDate, timeConversionOptions, InputHelper, InputHelperProps, InputHelperPalette, TextArea, TextAreaProps, TextAreaPalette, FileUploader, FileUploaderProps, FileUploaderPalette, FileRejection, fileUploaderOnDrop, Spinner, };
|