@fattureincloud/fic-design-system 0.7.53 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. package/dist/common/components/label/Label.d.ts +3 -0
  2. package/dist/common/components/label/types.d.ts +16 -0
  3. package/dist/common/components/label/utils.d.ts +5 -0
  4. package/dist/common/types/index.d.ts +0 -1
  5. package/dist/common/utils/dsUtils.d.ts +3 -0
  6. package/dist/components/accordions/index.d.ts +1 -2
  7. package/dist/components/card/Card.d.ts +1 -3
  8. package/dist/components/card/types.d.ts +3 -5
  9. package/dist/components/form/checkbox/Checkbox.d.ts +8 -7
  10. package/dist/components/form/checkbox/types.d.ts +5 -7
  11. package/dist/components/form/datepicker/components/DatePickerHeader.d.ts +1 -0
  12. package/dist/components/form/datepicker/datePickerPalette.d.ts +1 -1
  13. package/dist/components/form/datepicker/styled.d.ts +1 -0
  14. package/dist/components/form/datepicker/types.d.ts +1 -0
  15. package/dist/components/form/radio/types.d.ts +2 -2
  16. package/dist/components/modals/index.d.ts +1 -0
  17. package/dist/components/modals/stepModal/styled.d.ts +4 -1
  18. package/dist/components/monthlyTab/MonthlyTab.d.ts +1 -1
  19. package/dist/components/monthlyTab/components/month/Month.d.ts +4 -3
  20. package/dist/components/monthlyTab/components/month/styled.d.ts +1 -0
  21. package/dist/components/monthlyTab/types.d.ts +8 -3
  22. package/dist/components/newTable/Table.d.ts +1 -1
  23. package/dist/components/newTable/components/body/Body.d.ts +1 -1
  24. package/dist/components/newTable/components/cell/Cell.d.ts +1 -1
  25. package/dist/components/newTable/components/cell/customActionCell/CustomActionCell.d.ts +1 -1
  26. package/dist/components/newTable/components/cell/customCell/CustomCell.d.ts +1 -1
  27. package/dist/components/newTable/components/header/Header.d.ts +1 -1
  28. package/dist/components/newTable/components/header/headerCell/ActionHeaderCell.d.ts +1 -1
  29. package/dist/components/newTable/components/header/headerCell/HeaderCell.d.ts +1 -1
  30. package/dist/components/newTable/components/header/headerCell/styled.d.ts +1 -0
  31. package/dist/components/newTable/components/header/hooks/useHeaderValues.d.ts +1 -1
  32. package/dist/components/newTable/components/row/Row.d.ts +1 -1
  33. package/dist/components/newTable/types.d.ts +1 -1
  34. package/dist/components/segmentButton/SegmentButton.d.ts +2 -2
  35. package/dist/components/segmentButton/styled.d.ts +3 -0
  36. package/dist/components/segmentButton/types.d.ts +1 -0
  37. package/dist/components/verticalTabs/index.d.ts +1 -0
  38. package/dist/components/verticalTabs/styled.d.ts +1 -3
  39. package/dist/index.d.ts +44 -45
  40. package/dist/index.esm.js +9 -9
  41. package/dist/index.esm.js.map +1 -1
  42. package/dist/index.js +9 -9
  43. package/dist/index.js.map +1 -1
  44. package/dist/styles/types.d.ts +2 -2
  45. package/package.json +1 -1
@@ -0,0 +1,3 @@
1
+ import { LabelProps, MappedLabelProps } from './types';
2
+ declare const Label: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, MappedLabelProps & LabelProps, keyof MappedLabelProps>;
3
+ export default Label;
@@ -0,0 +1,16 @@
1
+ import { paletteColor } from '../../../styles/types';
2
+ export interface LabelProps {
3
+ large?: boolean;
4
+ disabled?: boolean;
5
+ hasError: boolean;
6
+ palette: {
7
+ normal: paletteColor;
8
+ error: paletteColor;
9
+ };
10
+ }
11
+ export interface MappedLabelProps {
12
+ fontSize: string;
13
+ cursor: string;
14
+ color: paletteColor;
15
+ opacity: number;
16
+ }
@@ -0,0 +1,5 @@
1
+ import { DefaultTheme } from 'styled-components';
2
+ import { LabelProps, MappedLabelProps } from './types';
3
+ export declare const getLabelStyle: ({ disabled, large, hasError, palette, }: LabelProps & {
4
+ theme: DefaultTheme;
5
+ }) => MappedLabelProps;
@@ -1,4 +1,3 @@
1
1
  export * from './colorsPalette';
2
2
  export * from './dateTypes';
3
- export * from './label';
4
3
  export * from './misc';
@@ -12,3 +12,6 @@ export declare const isNumeric: (n: string) => boolean;
12
12
  * @returns {string} string
13
13
  */
14
14
  export declare const currency: (number: number | string) => string;
15
+ export declare const isPaletteColor: (color: string) => color is "black" | "white" | "grey" | "blue" | "indigo" | "yellow" | "orange" | "red" | "green" | "fuchsia" | "pink" | "cyan" | "primary";
16
+ export declare const isBWColor: (color: string) => color is "black" | "white";
17
+ export declare const isColor: (color: string) => color is "grey" | "blue" | "indigo" | "yellow" | "orange" | "red" | "green" | "fuchsia" | "pink" | "cyan" | "primary";
@@ -1,2 +1 @@
1
- import Accordion from './accordions';
2
- export { Accordion };
1
+ export { default as Accordion } from './accordions';
@@ -1,7 +1,5 @@
1
1
  import React from 'react';
2
- declare const _default: React.ForwardRefExoticComponent<import("./types").StyledCardProps & {
2
+ declare const _default: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & import("./types").StyledCardProps & {
3
3
  children: React.ReactNode | React.ReactNode[];
4
- className?: string | undefined;
5
- style?: React.CSSProperties | undefined;
6
4
  } & React.RefAttributes<HTMLDivElement>>;
7
5
  export default _default;
@@ -1,4 +1,4 @@
1
- import { CSSProperties } from 'react';
1
+ import { HTMLAttributes, ReactNode } from 'react';
2
2
  import { paletteColor } from '../../styles/types';
3
3
  export declare enum CardType {
4
4
  PRIMARY = "primary",
@@ -22,10 +22,8 @@ export declare type StyledCardProps = {
22
22
  elevation?: CardElevation;
23
23
  type?: CardType;
24
24
  };
25
- export declare type CardProps = StyledCardProps & {
26
- children: React.ReactNode | React.ReactNode[];
27
- className?: string;
28
- style?: CSSProperties;
25
+ export declare type CardProps = HTMLAttributes<HTMLDivElement> & StyledCardProps & {
26
+ children: ReactNode | ReactNode[];
29
27
  };
30
28
  declare type CardPaletteAttributes = {
31
29
  background: paletteColor;
@@ -2,14 +2,15 @@
2
2
  import { CheckboxProps } from './types';
3
3
  /**
4
4
  * Component Props:
5
- * @param {string} className To support styled-components customization
6
- * @param {boolean} disabled Checkbox interaction disabled
7
- * @param {InputHelperProps} helper Render an error form box when necessary
8
- * @param {boolean} large Improve Checkbox size
9
- * @param {function} onClick Callback called on component click
10
- * @param {string} text Component label text
5
+ * @param {string} [className] To support styled-components customization
6
+ * @param {boolean} [disabled] Checkbox interaction disabled
7
+ * @param {InputHelperProps} [helper] Render an error form box when necessary
8
+ * @param {boolean} [large] Improve Checkbox size
9
+ * @param {function} [onChange] Callback called on value change
10
+ * @param {function} [onClick] Callback called on component click
11
+ * @param {boolean} [required] Mark the checkbox as required with a red asterisk
12
+ * @param {ReactNode} [text] Component label text
11
13
  * @param {CheckboxStatus} value Checkbox status
12
- * @param {string} textColor To change label text color
13
14
  */
14
15
  declare const Checkbox: ({ value, ...rest }: CheckboxProps) => JSX.Element;
15
16
  export default Checkbox;
@@ -1,7 +1,6 @@
1
- import { ChangeEvent, InputHTMLAttributes } from 'react';
1
+ import { InputHTMLAttributes, MouseEvent, ReactNode } from 'react';
2
2
  import { paletteColor } from '../../../styles/types';
3
3
  import { InputHelperProps } from '../inputHelper';
4
- import { LabelProps } from '../label';
5
4
  export declare enum CheckboxStatus {
6
5
  CHECKED = "checked",
7
6
  UNCHECKED = "unchecked",
@@ -31,14 +30,13 @@ export interface CheckboxInputProps {
31
30
  large?: boolean;
32
31
  hasError: boolean;
33
32
  }
34
- export interface CheckboxImplProps extends Omit<CheckboxInputProps, 'hasError'>, Omit<LabelProps, 'hasError'> {
35
- onClick?: (e: ChangeEvent<HTMLInputElement>) => void;
36
- text?: string;
37
- helper?: InputHelperProps;
33
+ export interface CheckboxImplProps extends Omit<CheckboxInputProps, 'hasError'> {
38
34
  className?: string;
35
+ helper?: InputHelperProps;
39
36
  onChange?: InputHTMLAttributes<HTMLInputElement>['onChange'];
40
- textColor?: paletteColor;
37
+ onClick?: (e: MouseEvent) => void;
41
38
  required?: boolean;
39
+ text?: ReactNode;
42
40
  }
43
41
  export interface CheckboxProps extends Omit<CheckboxImplProps, 'value'> {
44
42
  value: CheckboxImplProps['value'] | boolean;
@@ -3,6 +3,7 @@ import { ReactDatePickerCustomHeaderProps } from 'react-datepicker';
3
3
  export interface DatePickerHeaderProps extends ReactDatePickerCustomHeaderProps {
4
4
  yearsDisplayed: number;
5
5
  setHideMonth: (value: boolean) => void;
6
+ hideYearSelection: boolean;
6
7
  }
7
8
  declare const DatePickerHeader: (props: DatePickerHeaderProps) => JSX.Element;
8
9
  export default DatePickerHeader;
@@ -13,7 +13,7 @@ declare type DayPalette = {
13
13
  [k in Exclude<ItemStatus, 'active' | 'activeHover' | 'disabled'>]: colorsPalette;
14
14
  };
15
15
  weekend: {
16
- [k in Exclude<ItemStatus, 'active' | 'activeHover' | 'disabled'>]: colorsPalette;
16
+ [k in Exclude<ItemStatus, 'disabled'>]: colorsPalette;
17
17
  };
18
18
  };
19
19
  declare type ItemStatusPalette = {
@@ -1,6 +1,7 @@
1
1
  export declare const StyledDatePicker: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
2
2
  fitBiggerContainer?: boolean | undefined;
3
3
  hideMonth: boolean;
4
+ inline?: boolean | undefined;
4
5
  }, never>;
5
6
  export declare const FooterWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
6
7
  export declare const SelectedOption: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
@@ -27,5 +27,6 @@ export interface DatePickerImplProps extends Omit<ReactDatePickerProps, 'onChang
27
27
  fitBiggerContainer?: boolean;
28
28
  includeDates?: Date[];
29
29
  excludeDates?: Date[];
30
+ hideYearSelection?: boolean;
30
31
  }
31
32
  export declare type DatePickerProps = LabelProps & DatePickerImplProps;
@@ -1,5 +1,5 @@
1
1
  import { ChangeEvent, InputHTMLAttributes } from 'react';
2
- import { LabelProps } from '../../../common/types/label';
2
+ import { LabelProps } from '../../../common/components/label/types';
3
3
  import { paletteColor } from '../../../styles/types';
4
4
  import { InputHelperProps } from '../inputHelper';
5
5
  export declare enum RadioStatus {
@@ -28,7 +28,7 @@ export interface RadioInputProps {
28
28
  large?: boolean;
29
29
  hasError: boolean;
30
30
  }
31
- export interface RadioImplProps extends Omit<RadioInputProps, 'hasError'>, Omit<LabelProps, 'hasError'> {
31
+ export interface RadioImplProps extends Omit<RadioInputProps, 'hasError'>, Omit<LabelProps, 'hasError' | 'palette'> {
32
32
  onClick?: (e: ChangeEvent<HTMLInputElement>) => void;
33
33
  text?: string;
34
34
  helper?: InputHelperProps;
@@ -1,4 +1,5 @@
1
1
  import ModalSearchable from './components/ModalSearchable';
2
2
  import { Modal } from './modals';
3
3
  export { Modal, ModalSearchable };
4
+ export { ModalBody } from './modalStyled';
4
5
  export * from './stepModal';
@@ -1,4 +1,7 @@
1
+ import { ReactNode } from 'react';
1
2
  import { Modal } from '../modals';
2
3
  import { ContentWrapperProps } from './types';
3
4
  export declare const ModalBodyWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, ContentWrapperProps, never>;
4
- export declare const StyledModal: import("styled-components").StyledComponent<typeof Modal, import("styled-components").DefaultTheme, {}, never>;
5
+ export declare const StyledModal: import("styled-components").StyledComponent<typeof Modal, import("styled-components").DefaultTheme, {
6
+ children: ReactNode;
7
+ }, never>;
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
2
  import { MonthlyTabProps } from './types';
3
- declare const MonthlyTab: ({ data, onSelectionChange, monthText, preSelectedMonth, }: MonthlyTabProps) => JSX.Element;
3
+ declare const MonthlyTab: ({ data, onSelectionChange, monthText, preSelectedMonths, currentMonth, }: MonthlyTabProps) => JSX.Element;
4
4
  export default MonthlyTab;
@@ -3,9 +3,10 @@ interface MonthProps {
3
3
  monthNumber: number;
4
4
  percentage: number;
5
5
  selected: boolean;
6
- documents: number;
6
+ documents: number[];
7
7
  amount: number;
8
- monthText: string;
8
+ monthText: string[];
9
+ isCurrentMonth: boolean;
9
10
  }
10
- declare const Month: ({ monthNumber, percentage, selected, documents, amount, monthText }: MonthProps) => JSX.Element;
11
+ declare const Month: ({ monthNumber, percentage, selected, documents, amount, monthText, isCurrentMonth, }: MonthProps) => JSX.Element;
11
12
  export default Month;
@@ -4,6 +4,7 @@ export declare const Container: import("styled-components").StyledComponent<"div
4
4
  }, never>;
5
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
6
  selected: boolean;
7
+ isCurrentMonth: boolean;
7
8
  }, never>;
8
9
  export declare const PercentageLevel: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
9
10
  percentage: number;
@@ -4,7 +4,7 @@ export declare type MonthAmountData = {
4
4
  monthName: string;
5
5
  } & MonthDocumentAmount;
6
6
  declare type MonthDocumentAmount = {
7
- documents: number;
7
+ documents: number[];
8
8
  amount: number;
9
9
  };
10
10
  export declare type MonthData = {
@@ -13,16 +13,21 @@ export declare type MonthData = {
13
13
  export interface MonthlyTabProps {
14
14
  data: MonthData;
15
15
  onSelectionChange: (monthsData: MonthAmountData[]) => void;
16
- monthText?: string;
17
- preSelectedMonth: number;
16
+ monthText?: string[];
17
+ preSelectedMonths: number[];
18
+ currentMonth: number;
18
19
  }
19
20
  export declare type MonthlyTabPalette = {
20
21
  standard: {
21
22
  borderBottom: paletteColor;
22
23
  headerColor: paletteColor;
24
+ backgroundColor: paletteColor;
23
25
  };
24
26
  selected: {
25
27
  borderBottom: paletteColor;
28
+ backgroundColor: paletteColor;
29
+ };
30
+ isCurrentMonth: {
26
31
  headerColor: paletteColor;
27
32
  };
28
33
  border: paletteColor;
@@ -28,7 +28,7 @@ import { TableProps } from './types';
28
28
  * @param {function} renderEmptyState Render a custom empty state for the table's body
29
29
  * @param {function} onRowClick Callback called after a click on a row, returns the row
30
30
  * @param {number} rowIdHighlight id of the row that will be highlighted
31
- * @param {string | number} actionColumnWidth used to determine the width of the action column
31
+ * @param {number} actionColumnWidth used to determine the width of the action column
32
32
  */
33
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;
@@ -6,7 +6,7 @@ interface BodyProps<T> extends Pick<TableProps<T>, 'rowSize' | 'bodyHeight' | 'r
6
6
  isLoading?: boolean;
7
7
  onRowClick?: (row: Row<T>) => void;
8
8
  pageIndex: number;
9
- actionColumnWidth?: string | number;
9
+ actionColumnWidth: number;
10
10
  disableScrollX?: boolean;
11
11
  }
12
12
  declare const Body: <T>({ rows, rowSize, isLoading, onRowClick, bodyHeight, rowIdHighlight, rowHighlightColor, pageIndex, actionColumnWidth, disableScrollX, }: BodyProps<T>) => JSX.Element;
@@ -8,7 +8,7 @@ interface Props<T> {
8
8
  rowSize?: RowSize;
9
9
  isLoading?: boolean;
10
10
  onRowClick?: (row: Row<T>) => void;
11
- actionColumnWidth?: string | number;
11
+ actionColumnWidth: number;
12
12
  }
13
13
  declare const Cell: <T>({ cell, row, hover, rowSize, isLoading, onRowClick, actionColumnWidth }: Props<T>) => JSX.Element;
14
14
  export default Cell;
@@ -8,7 +8,7 @@ interface Props<T> extends ActionColumnDef<T> {
8
8
  column: Column<T, unknown>;
9
9
  maxWidth?: number;
10
10
  minWidth?: number;
11
- actionColumnWidth?: string | number;
11
+ actionColumnWidth: number;
12
12
  }
13
13
  declare const CustomActionCell: <T>({ actionType, row, isToggled, onActionChange, rowActions, column, maxWidth, minWidth, actionColumnWidth, }: Props<T>) => JSX.Element;
14
14
  export default CustomActionCell;
@@ -6,7 +6,7 @@ declare type Props<CellProps> = {
6
6
  context: CellContext<CellProps, unknown>;
7
7
  hover?: boolean;
8
8
  rowSize?: RowSize;
9
- actionColumnWidth?: string | number;
9
+ actionColumnWidth: number;
10
10
  onRowClick?: (row: Row<CellProps>) => void;
11
11
  } & CustomCellProps & AccessorColumnDef<CellProps> & ActionColumnDef<CellProps> & AdditionalColumnDef<CellProps>;
12
12
  declare const CustomCell: <CellProps>({ content, isEditable, tag, unitSymbol, headline, leadingIcon, avatar, actionType, row, rowSize, onActionChange, isToggled, hover, onChange, trailingMicroTag, minWidth, rowActions, context, onRowClick, maxWidth, align, disableClick, actionColumnWidth, }: Props<CellProps>) => JSX.Element;
@@ -16,7 +16,7 @@ interface HeaderProps<T> {
16
16
  notRemovableColumns?: string[];
17
17
  onChangeTableSettings?: onChangeTableSettings;
18
18
  isLoading: boolean;
19
- actionColumnWidth?: string | number;
19
+ actionColumnWidth: number;
20
20
  }
21
21
  declare const Header: <T>({ headerGroup, headerSize, onSort, forceHideSettings, rowSelection, setRowSelection, preSettedTableSettings, onChangeTableSettings, notRemovableColumns, isLoading, actionColumnWidth, }: HeaderProps<T>) => JSX.Element;
22
22
  export default Header;
@@ -12,7 +12,7 @@ export interface CustomHeaderCellProps<T> {
12
12
  dimensionRow?: number;
13
13
  onChangeTableSettings?: onChangeTableSettings;
14
14
  isLoading: boolean;
15
- actionColumnWidth?: number | string;
15
+ actionColumnWidth: number;
16
16
  }
17
17
  declare const ActionHeaderCell: <T>({ header, onOpen, onClose, forceHideSettings, rowSelection, setRowSelection, notRemovableColumns, dimensionRow, onChangeTableSettings, isLoading, actionColumnWidth, }: CustomHeaderCellProps<T>) => JSX.Element;
18
18
  export default ActionHeaderCell;
@@ -14,7 +14,7 @@ interface HeaderCellProps<T> {
14
14
  dimensionRow?: number;
15
15
  onChangeTableSettings?: onChangeTableSettings;
16
16
  isLoading: boolean;
17
- actionColumnWidth?: string | number;
17
+ actionColumnWidth: number;
18
18
  }
19
19
  declare const HeaderCell: <T>({ header, headerSize, onSort, customSorted, setCustomSorted, forceHideSettings, rowSelection, setRowSelection, notRemovableColumns, dimensionRow, onChangeTableSettings, isLoading, actionColumnWidth, }: HeaderCellProps<T>) => JSX.Element;
20
20
  export default HeaderCell;
@@ -5,6 +5,7 @@ export declare const Th: import("styled-components").StyledComponent<"div", impo
5
5
  minWidth?: number | undefined;
6
6
  maxWidth?: number | undefined;
7
7
  sortable: boolean;
8
+ isActionColumn: boolean;
8
9
  }, never>;
9
10
  export declare const TextHeaderCellWrapper: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {}, never>;
10
11
  export declare const ActionCell: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
@@ -11,5 +11,5 @@ interface HeaderValues<T> {
11
11
  maxWidth?: number;
12
12
  tooltip?: TooltipProps;
13
13
  }
14
- declare const useHeaderValues: <T>(header: Header<T, unknown>) => HeaderValues<T>;
14
+ declare const useHeaderValues: <T>(header: Header<T, unknown>, actionColumnWidth: number) => HeaderValues<T>;
15
15
  export default useHeaderValues;
@@ -8,7 +8,7 @@ interface TrProps<T> extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLTa
8
8
  onRowClick?: (row: Row<T>) => void;
9
9
  isRowHighlighted: boolean;
10
10
  rowHighlightColor?: TableProps<T>['rowHighlightColor'];
11
- actionColumnWidth?: string | number;
11
+ actionColumnWidth: number;
12
12
  }
13
13
  declare const Tr: <T>({ row, isLoading, onRowClick, isRowHighlighted, rowHighlightColor, defaultRowSize, actionColumnWidth, }: TrProps<T>) => JSX.Element;
14
14
  export default Tr;
@@ -51,7 +51,7 @@ export interface TableProps<T> {
51
51
  };
52
52
  notRemovableColumns?: string[];
53
53
  onChangeTableSettings?: onChangeTableSettings;
54
- actionColumnWidth?: string | number;
54
+ actionColumnWidth?: number;
55
55
  disableScrollX?: boolean;
56
56
  resetPageIndex?: boolean;
57
57
  }
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { SegmentButtonProps } from './types';
3
- declare const SegmentButton: ({ onChange, preselected, segments }: SegmentButtonProps) => JSX.Element;
3
+ declare const SegmentButton: React.FC<SegmentButtonProps>;
4
4
  export default SegmentButton;
@@ -1,7 +1,10 @@
1
1
  declare type Props = {
2
2
  active: boolean;
3
+ isLoading?: boolean;
3
4
  };
4
5
  export declare const SegmentButtonContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
5
6
  export declare const Segment: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, Props, never>;
6
7
  export declare const Badge: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, Props, never>;
8
+ export declare const spin: import("styled-components").Keyframes;
9
+ export declare const Loader: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, Props, never>;
7
10
  export {};
@@ -23,4 +23,5 @@ export declare type SegmentButtonProps = {
23
23
  onChange?: (i: number, s: Segment) => void;
24
24
  preselected?: number;
25
25
  segments: Segment[];
26
+ isLoading?: boolean;
26
27
  };
@@ -1,3 +1,4 @@
1
1
  export { default as VerticalTabs } from './VerticalTabs';
2
2
  export * from './types';
3
3
  export { default as verticalTabsPalette } from './verticalTabsPalette';
4
+ export * from './components/verticalTabsSelector/VerticalTabsSelector';
@@ -1,8 +1,6 @@
1
1
  /// <reference types="react" />
2
- export declare const VerticalTabsWrapper: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("../card").StyledCardProps & {
2
+ export declare const VerticalTabsWrapper: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & import("../card").StyledCardProps & {
3
3
  children: import("react").ReactNode | import("react").ReactNode[];
4
- className?: string | undefined;
5
- style?: import("react").CSSProperties | undefined;
6
4
  } & import("react").RefAttributes<HTMLDivElement>>, import("styled-components").DefaultTheme, {}, never>;
7
5
  export declare const VerticalTabsSelectorsWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
8
6
  export declare const VerticalTabsContentWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
package/dist/index.d.ts CHANGED
@@ -1,56 +1,55 @@
1
- import Spinner from './common/components/Spinner';
2
- import { EditableInput } from './components/editableInput';
3
- export { Body, Caption, Headline, Title1, Title2, Title3, Title4, Title5, Title6 } from './common/components/typography';
4
- import { Accordion } from './components/accordions';
5
- import { Avatar } from './components/avatar';
6
- import { Button, ButtonPalette, ButtonProps, IconButton, IconButtonPalette, IconButtonProps } from './components/buttons';
7
- import { Chart, ChartProps } from './components/chart';
8
- import { CircularProgressBar, circularProgressBarPalette, CircularProgressBarProps, CircularProgressBarType } from './components/circularProgressBar';
9
- import { ClosableCard, ClosableCardPalette, ClosableCardProps } from './components/closableCard';
10
- import { Drawer } from './components/drawer';
11
- import { closeDropdownType, Dropdown, DropdownItemProps, DropdownItemType, DropdownPalette, renderContentType } from './components/dropdown';
12
- import { Checkbox, CheckboxPalette, CheckboxProps, CheckboxStatus, useCheckboxValue } from './components/form/checkbox';
13
- import { DatePicker, DatePickerPalette, DatePickerProps, timeConversionOptions, useFormattedDate } from './components/form/datepicker';
14
- import { FileRejection, FileUploader, fileUploaderOnDrop, FileUploaderPalette, FileUploaderProps } from './components/form/fileUploader';
15
- import { InputHelper, InputHelperPalette, InputHelperProps } from './components/form/inputHelper';
16
- import { InputCode, InputCodeProps, InputTelephone, InputTelephoneProps, InputText, InputTextPalette, InputTextProps, UnitDropdownProps } from './components/form/inputText';
17
- import { Radio, RadioPalette, RadioProps, RadioStatus, useRadioValue } from './components/form/radio';
18
- import { RadioGroup, RadioGroupOptions, RadioGroupProps } from './components/form/radioGroup';
19
- import { AsyncCreatableSelect, AsyncCreatableSelectProps, AsyncSelect, AsyncSelectProps, CreatableSelect, CreatableSelectProps, isSimpleValue, OptionType, Select, SelectComponentsType, SelectPalette, SelectProps, simpleValue, useSelectMultiValues, useSelectSimpleValue, useSelectValue } from './components/form/select';
20
- import { TextArea, TextAreaPalette, TextAreaProps } from './components/form/textArea';
21
- import { GroupedList, GroupType, ItemType } from './components/groupedList';
22
- import { Icon, iconColors, IconPalette, IconProps } from './components/icon';
23
- import { IconBackground, IconBackgroundPalette } from './components/icon/components/iconBackground';
24
- import { InlineMessage, InlineMessagePalette, InlineMessageProps, InlineMessageType } from './components/inlineMessage';
25
- import { MicroTag, MicroTagPalette, MicroTagProps } from './components/microTag';
26
- import { Modal, ModalSearchable, StepModal, StepModalBody, StepModalCommonProps, StepModalFooter, StepModalFooterProps, StepModalHeader, StepModalHeaderProps, StepModalProps } from './components/modals';
27
- import { ConfirmationModal } from './components/modals/confirmationModal';
28
- import { ModalBody } from './components/modals/modalStyled';
29
- import { MonthlyTab, MonthlyTabPalette } from './components/monthlyTab';
30
- import { BulkAction, CellProps, ColumnDefType, ColumnsType, NewTable, RowAction, RowActions as NewRowActions } from './components/newTable';
31
- import { Column, ManualPagination, OnSelectionChange, OnSort, Row, RowActions, Table, TableData, TablePalette, TableProps, useTableValues } from './components/oldTable';
32
- import { PageEmptySet } from './components/pageEmptySet';
33
- import { Stepper, StepperPalette, StepperProps } from './components/stepper';
34
- import { DropdownTabs, ScrollableTabs, TabsItem } from './components/tabs';
35
- import { Tag, TagPalette, TagProps, tagTypes } from './components/tag';
36
- import { ThemeProvider } from './components/themeProvider';
37
- import { Toast, ToastPalette, toastPalette, ToastProps, ToastType } from './components/toast';
38
- import { Tooltip, TooltipPalette, TooltipProps } from './components/tooltip';
39
- import { autocompleteYellow } from './styles/defaultPalette/colors/others';
40
- import { Theme } from './styles/theme';
41
- import { Palette, paletteColor } from './styles/types';
1
+ export { default as Spinner } from './common/components/Spinner';
2
+ export { ComponentType } from './common/types';
3
+ export * from './common/components/typography';
4
+ export { isBWColor, isColor, isHexColor, isPaletteColor, parseDimension, pixelToNumber } from './common/utils/dsUtils';
5
+ export { Accordion } from './components/accordions';
6
+ export { Avatar } from './components/avatar';
42
7
  export { Badge, BadgeProps, BadgeType, BadgePalette } from './components/badge';
43
8
  export { Banner, BannerProps, BannerType, BannerPalette } from './components/banner';
9
+ export { Button, ButtonPalette, ButtonProps, IconButton, IconButtonPalette, IconButtonProps, } from './components/buttons';
10
+ export { Card, CardColor, CardPalette, CardProps, CardElevation, CardType } from './components/card';
11
+ export { Chart, ChartProps } from './components/chart';
44
12
  export { Chip, ChipType, ChipPalette, ChipProps } from './components/chip';
13
+ export { CircularProgressBar, circularProgressBarPalette, CircularProgressBarProps, CircularProgressBarType, } from './components/circularProgressBar';
14
+ export { ClosableCard, ClosableCardPalette, ClosableCardProps } from './components/closableCard';
15
+ export { Drawer } from './components/drawer';
16
+ export { closeDropdownType, Dropdown, DropdownItemProps, DropdownItemType, DropdownPalette, renderContentType, } from './components/dropdown';
17
+ export { EditableInput } from './components/editableInput';
45
18
  export { BadgeSize, FloatingBadgePalette, FloatingBadgeType, NotificationBadge, WithBadge, } from './components/floatingBadge';
19
+ export { Checkbox, CheckboxPalette, CheckboxProps, CheckboxStatus, useCheckboxValue } from './components/form/checkbox';
20
+ export { DatePicker, DatePickerPalette, DatePickerProps, timeConversionOptions, useFormattedDate, } from './components/form/datepicker';
21
+ export { FileRejection, FileUploader, fileUploaderOnDrop, FileUploaderPalette, FileUploaderProps, } from './components/form/fileUploader';
22
+ export { InputHelper, InputHelperPalette, InputHelperProps } from './components/form/inputHelper';
23
+ export { InputCode, InputCodeProps, InputTelephone, InputTelephoneProps, InputText, InputTextPalette, InputTextProps, UnitDropdownProps, } from './components/form/inputText';
46
24
  export { LabelPalette } from './components/form/label';
25
+ export { Radio, RadioPalette, RadioProps, RadioStatus, useRadioValue } from './components/form/radio';
26
+ export { RadioGroup, RadioGroupOptions, RadioGroupProps } from './components/form/radioGroup';
27
+ export { AsyncCreatableSelect, AsyncCreatableSelectProps, AsyncSelect, AsyncSelectProps, CreatableSelect, CreatableSelectProps, isSimpleValue, OptionType, Select, SelectComponentsType, SelectPalette, SelectProps, simpleValue, useSelectMultiValues, useSelectSimpleValue, useSelectValue, } from './components/form/select';
28
+ export { TextArea, TextAreaPalette, TextAreaProps } from './components/form/textArea';
29
+ export { GroupedList, GroupType, ItemType } from './components/groupedList';
30
+ export { Icon, iconColors, IconPalette, IconProps, IconBackground, IconBackgroundPalette } from './components/icon';
31
+ export { InlineMessage, InlineMessagePalette, InlineMessageProps, InlineMessageType } from './components/inlineMessage';
47
32
  export { CustomSidebarItemProps, SidebarBadgeConfigProps, SidebarBadgeConfigType, SidebarItem, sidebarItemHeight, SidebarItemPalette, SidebarItemProps, } from './components/layout';
33
+ export { MicroTag, MicroTagPalette, MicroTagProps } from './components/microTag';
34
+ export { Modal, ModalSearchable, ModalBody } from './components/modals';
35
+ export { ConfirmationModal } from './components/modals/confirmationModal';
36
+ export * from './components/modals/stepModal';
37
+ export { MonthlyTab, MonthlyTabPalette } from './components/monthlyTab';
38
+ export { BulkAction, CellProps, ColumnDefType, ColumnsType, NewTable, RowAction, RowActions as NewRowActions, } from './components/newTable';
39
+ export { Column, ManualPagination, OnSelectionChange, OnSort, Row, RowActions, Table, TableData, TablePalette, TableProps, useTableValues, } from './components/oldTable';
40
+ export { PageEmptySet } from './components/pageEmptySet';
48
41
  export { Pagination, PaginationPalette, PaginationType } from './components/pagination';
49
42
  export { ProgressBar, ProgressBarPalette, ProgressBarProps, ProgressBarType } from './components/progressbar';
50
43
  export { Segment, SegmentButton, SegmentButtonPalette, SegmentButtonProps } from './components/segmentButton';
44
+ export { Stepper, StepperPalette, StepperProps } from './components/stepper';
45
+ export { Switch } from './components/switch';
46
+ export { DropdownTabs, ScrollableTabs, TabsItem } from './components/tabs';
47
+ export { Tag, TagPalette, TagProps, tagTypes } from './components/tag';
48
+ export { ThemeProvider } from './components/themeProvider';
51
49
  export { ShortcutTip, ShortcutTipProps, Tip, TipPalette, TipProps, TipType } from './components/tip';
52
- export { bwColor } from './styles/types';
53
- export { Card, CardColor, CardPalette, CardProps, CardElevation, CardType } from './components/card';
54
- export { NewTable, Table, CircularProgressBar, CircularProgressBarProps, circularProgressBarPalette, CircularProgressBarType, ColumnsType, ColumnDefType, CellProps, BulkAction, NewRowActions, RowAction, autocompleteYellow, paletteColor, Avatar, Button, ButtonProps, ButtonPalette, IconButton, IconButtonProps, IconButtonPalette, Icon, IconProps, IconPalette, iconColors, IconBackground, IconBackgroundPalette, 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, 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, Chart, ChartProps, ClosableCard, ClosableCardProps, ClosableCardPalette, };
50
+ export { Toast, ToastPalette, toastPalette, ToastProps, ToastType } from './components/toast';
51
+ export { Tooltip, TooltipPalette, TooltipProps } from './components/tooltip';
55
52
  export * from './components/verticalTabs';
56
- export * from './components/verticalTabs/components/verticalTabsSelector/VerticalTabsSelector';
53
+ export { autocompleteYellow } from './styles/defaultPalette/colors/others';
54
+ export { Theme } from './styles/theme';
55
+ export { Palette, paletteColor, BwPalette, ColorsPalette, bwColors, bwColor, color, colors } from './styles/types';