@fattureincloud/fic-design-system 0.6.0 → 0.6.2-temp-table

Sign up to get free protection for your applications and to get access to all the features.
Files changed (142) hide show
  1. package/dist/common/components/Spinner.d.ts +5 -1
  2. package/dist/components/banner/utils.d.ts +8 -0
  3. package/dist/components/buttons/button/styled.d.ts +1 -1
  4. package/dist/components/chips/chips.d.ts +7 -0
  5. package/dist/components/chips/chips.stories.d.ts +6 -0
  6. package/dist/components/chips/components/styledChipWrapper.d.ts +4 -0
  7. package/dist/components/chips/index.d.ts +2 -0
  8. package/dist/components/chips/types.d.ts +11 -0
  9. package/dist/components/dropdown/DropdownImpl.d.ts +1 -1
  10. package/dist/components/dropdown/types.d.ts +1 -0
  11. package/dist/components/floatingBadge/{FloatingBadge.d.ts → floatingBadge.d.ts} +0 -0
  12. package/dist/components/floatingBadge/{WithBadge.d.ts → withBadge.d.ts} +0 -0
  13. package/dist/components/form/checkbox/components/Input.d.ts +9 -0
  14. package/dist/components/form/checkbox/components/Label.d.ts +8 -0
  15. package/dist/components/form/datepicker/StyledDatePicker.d.ts +1 -0
  16. package/dist/components/form/datepicker/hooks/useDatePickerValues.d.ts +13 -0
  17. package/dist/components/form/inputText/InputCode.d.ts +4 -0
  18. package/dist/components/form/inputText/InputTelephone.d.ts +4 -0
  19. package/dist/components/form/inputText/InputText.d.ts +24 -2
  20. package/dist/components/form/inputText/components/styled.d.ts +6 -0
  21. package/dist/components/form/inputText/countriesTelephonePrefixes.d.ts +7 -0
  22. package/dist/components/form/inputText/hooks/useCodeInputHooks.d.ts +11 -0
  23. package/dist/components/form/inputText/index.d.ts +4 -2
  24. package/dist/components/form/inputText/inputText.stories.d.ts +5 -5
  25. package/dist/components/form/inputText/types.d.ts +3 -4
  26. package/dist/components/form/select/components/Placeholder.d.ts +4 -0
  27. package/dist/components/form/textArea/TextArea.d.ts +3 -3
  28. package/dist/components/form/textArea/components/TextAreaElement.d.ts +2 -2
  29. package/dist/components/groupRadioButton/index.d.ts +23 -0
  30. package/dist/components/groupRadioButton/radio-group.stories.d.ts +6 -0
  31. package/dist/components/inlineMessages/components/styledInlineMessageWrapper.d.ts +8 -0
  32. package/dist/components/inlineMessages/index.d.ts +2 -0
  33. package/dist/components/inlineMessages/inlineMessages.d.ts +4 -0
  34. package/dist/components/inlineMessages/inlineMessages.stories.d.ts +7 -0
  35. package/dist/components/inlineMessages/types.d.ts +29 -0
  36. package/dist/components/newTable/Table.d.ts +32 -0
  37. package/dist/components/newTable/components/action/favorite/Favorite.d.ts +14 -0
  38. package/dist/components/newTable/components/action/favorite/index.d.ts +1 -0
  39. package/dist/components/newTable/components/action/favorite/styled.d.ts +4 -0
  40. package/dist/components/newTable/components/action/settings/ColumnsSettings/ColumnItem/ColumnItem.d.ts +8 -0
  41. package/dist/components/newTable/components/action/settings/ColumnsSettings/ColumnItem/styled.d.ts +4 -0
  42. package/dist/components/newTable/components/action/settings/ColumnsSettings/ColumnsSettings.d.ts +8 -0
  43. package/dist/components/newTable/components/action/settings/ColumnsSettings/DraggableContent/DraggableContent.d.ts +7 -0
  44. package/dist/components/newTable/components/action/settings/ColumnsSettings/index.d.ts +2 -0
  45. package/dist/components/newTable/components/action/settings/ColumnsSettings/styled.d.ts +4 -0
  46. package/dist/components/newTable/components/action/settings/DropdownSettings/DropdownSettings.d.ts +7 -0
  47. package/dist/components/newTable/components/action/settings/DropdownSettings/index.d.ts +1 -0
  48. package/dist/components/newTable/components/action/settings/DropdownSettings/styled.d.ts +4 -0
  49. package/dist/components/newTable/components/action/settings/RowHeightSettings/RowHeightSettings.d.ts +10 -0
  50. package/dist/components/newTable/components/action/settings/RowHeightSettings/index.d.ts +1 -0
  51. package/dist/components/newTable/components/action/settings/RowHeightSettings/styled.d.ts +2 -0
  52. package/dist/components/newTable/components/action/settings/Settings.d.ts +8 -0
  53. package/dist/components/newTable/components/action/settings/hooks/index.d.ts +2 -0
  54. package/dist/components/newTable/components/action/settings/hooks/useColumnValues.d.ts +8 -0
  55. package/dist/components/newTable/components/action/settings/hooks/useDropdownSettingsValues.d.ts +13 -0
  56. package/dist/components/newTable/components/action/settings/index.d.ts +1 -0
  57. package/dist/components/newTable/components/action/settings/styled.d.ts +2 -0
  58. package/dist/components/newTable/components/action/toggle/Toggle.d.ts +14 -0
  59. package/dist/components/newTable/components/action/toggle/constants.d.ts +3 -0
  60. package/dist/components/newTable/components/action/toggle/index.d.ts +1 -0
  61. package/dist/components/newTable/components/action/toggle/styled.d.ts +5 -0
  62. package/dist/components/newTable/components/body/Body.d.ts +9 -0
  63. package/dist/components/newTable/components/bulkBar/BulkBar.d.ts +9 -0
  64. package/dist/components/newTable/components/bulkBar/styled.d.ts +10 -0
  65. package/dist/components/newTable/components/cell/Cell.d.ts +12 -0
  66. package/dist/components/newTable/components/cell/customActionCell/CustomActionCell.d.ts +12 -0
  67. package/dist/components/newTable/components/cell/customActionCell/DropdownActionCell.d.ts +10 -0
  68. package/dist/components/newTable/components/cell/customActionCell/PrimaryActionCell.d.ts +9 -0
  69. package/dist/components/newTable/components/cell/customActionCell/index.d.ts +3 -0
  70. package/dist/components/newTable/components/cell/customActionCell/styled.d.ts +4 -0
  71. package/dist/components/newTable/components/cell/customCell/CustomCell.d.ts +11 -0
  72. package/dist/components/newTable/components/cell/customCell/CustomInput.d.ts +9 -0
  73. package/dist/components/newTable/components/cell/customCell/TextAreaPopup.d.ts +9 -0
  74. package/dist/components/newTable/components/cell/customCell/constants.d.ts +1 -0
  75. package/dist/components/newTable/components/cell/customCell/index.d.ts +1 -0
  76. package/dist/components/newTable/components/cell/customCell/styled.d.ts +7 -0
  77. package/dist/components/newTable/components/cell/hooks/index.d.ts +1 -0
  78. package/dist/components/newTable/components/cell/hooks/useCellValues.d.ts +16 -0
  79. package/dist/components/newTable/components/cell/loadingCell/LoadingCell.d.ts +7 -0
  80. package/dist/components/newTable/components/cell/loadingCell/index.d.ts +1 -0
  81. package/dist/components/newTable/components/cell/styled.d.ts +20 -0
  82. package/dist/components/newTable/components/footer/Footer.d.ts +7 -0
  83. package/dist/components/newTable/components/header/Header.d.ts +10 -0
  84. package/dist/components/newTable/components/header/headerCell/ActionHeaderCell.d.ts +8 -0
  85. package/dist/components/newTable/components/header/headerCell/HeaderCell.d.ts +12 -0
  86. package/dist/components/newTable/components/header/headerCell/styled.d.ts +9 -0
  87. package/dist/components/newTable/components/header/hooks/index.d.ts +2 -0
  88. package/dist/components/newTable/components/header/hooks/useActionHeaderValues.d.ts +16 -0
  89. package/dist/components/newTable/components/header/hooks/useHeaderValues.d.ts +14 -0
  90. package/dist/components/newTable/components/row/Row.d.ts +10 -0
  91. package/dist/components/newTable/components/row/styled.d.ts +6 -0
  92. package/dist/components/newTable/components/utils.d.ts +10 -0
  93. package/dist/components/newTable/constants.d.ts +2 -0
  94. package/dist/components/newTable/hooks/useColumnPinning.d.ts +8 -0
  95. package/dist/components/newTable/hooks/usePagination.d.ts +9 -0
  96. package/dist/components/newTable/index.d.ts +2 -0
  97. package/dist/components/newTable/providers/TableProvider/TableProvider.d.ts +5 -0
  98. package/dist/components/newTable/providers/TableProvider/index.d.ts +3 -0
  99. package/dist/components/newTable/providers/TableProvider/types.d.ts +10 -0
  100. package/dist/components/newTable/stories/actions.d.ts +4 -0
  101. package/dist/components/newTable/stories/columns.d.ts +3 -0
  102. package/dist/components/newTable/stories/data.d.ts +2 -0
  103. package/dist/components/newTable/stories/styled.d.ts +1 -0
  104. package/dist/components/newTable/stories/types.d.ts +9 -0
  105. package/dist/components/newTable/styled.d.ts +9 -0
  106. package/dist/components/newTable/table.stories.d.ts +6 -0
  107. package/dist/components/newTable/types.d.ts +170 -0
  108. package/dist/components/newTable/utils.d.ts +8 -0
  109. package/dist/components/pagination/Pagination.d.ts +0 -1
  110. package/dist/components/pagination/pagination.stories.d.ts +1 -2
  111. package/dist/components/pagination/paginationStyledWrapper.d.ts +1 -0
  112. package/dist/components/pagination/styled.d.ts +3 -4
  113. package/dist/components/pagination/types.d.ts +14 -4
  114. package/dist/components/progressbar/components/styledProgressbarWrapper.d.ts +2 -0
  115. package/dist/components/progressbar/{ProgressBar.d.ts → progressbar.d.ts} +0 -0
  116. package/dist/components/progressbar/{progressBar.stories.d.ts → progressbar.stories.d.ts} +0 -0
  117. package/dist/components/radioButton/components/label.d.ts +2 -0
  118. package/dist/components/radioButton/components/radio.d.ts +2 -0
  119. package/dist/components/radioButton/index.d.ts +2 -0
  120. package/dist/components/radioButton/radio.stories.d.ts +6 -0
  121. package/dist/components/radioButton/typings/radioButton.d.ts +21 -0
  122. package/dist/components/table/components/ActionsCell.d.ts +10 -0
  123. package/dist/components/table/components/SortIndicator.d.ts +6 -0
  124. package/dist/components/table/components/TableBody.d.ts +14 -0
  125. package/dist/components/table/components/TableFoot.d.ts +2 -0
  126. package/dist/components/table/components/TableHeader.d.ts +7 -0
  127. package/dist/components/table/components/tableBody/TableBodyLoader.d.ts +7 -0
  128. package/dist/components/table/components/tableBody/styled.d.ts +3 -0
  129. package/dist/components/tip/components/styledTip.d.ts +4 -0
  130. package/dist/components/tip/{ShortcutTip.d.ts → shortcutTip.d.ts} +0 -0
  131. package/dist/components/tip/{Tip.d.ts → tip.d.ts} +0 -0
  132. package/dist/components/toast/ToastContainer.d.ts +9 -0
  133. package/dist/components/toast/components/{ToastContent.d.ts → toastContent.d.ts} +0 -0
  134. package/dist/components/toast/{Toast.d.ts → toast.d.ts} +0 -0
  135. package/dist/components/toast/typings/toast.d.ts +34 -0
  136. package/dist/components/tooltip/Tooltip.d.ts +3 -1
  137. package/dist/index.d.ts +3 -2
  138. package/dist/index.esm.js +26 -5
  139. package/dist/index.esm.js.map +1 -1
  140. package/dist/index.js +25 -4
  141. package/dist/index.js.map +1 -1
  142. package/package.json +2 -1
@@ -1,6 +1,10 @@
1
1
  /// <reference types="react" />
2
+ import { SizeProp } from '@fortawesome/fontawesome-svg-core';
3
+ import { iconColors } from '../../components/icon';
2
4
  export interface Props {
3
5
  className?: string;
6
+ color?: iconColors;
7
+ size?: SizeProp;
4
8
  }
5
- declare const Spinner: ({ className }: Props) => JSX.Element;
9
+ declare const Spinner: ({ className, color, size }: Props) => JSX.Element;
6
10
  export default Spinner;
@@ -0,0 +1,8 @@
1
+ import { DefaultTheme } from 'styled-components';
2
+ import { bannerColorType } from './Banner';
3
+ interface MappedColors {
4
+ bgColor: string;
5
+ textColor: string;
6
+ }
7
+ export declare const mapColors: (theme: DefaultTheme, color: bannerColorType) => MappedColors;
8
+ export {};
@@ -3,7 +3,7 @@ import { ButtonProps } from './Button';
3
3
  import { ButtonStyles, WrapperProps } from './types';
4
4
  export declare const LeftIcon: import("styled-components").StyledComponent<({ onClick, isDisabled, ...props }: import("../../icon").IconProps) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
5
5
  export declare const RightIcon: import("styled-components").StyledComponent<({ onClick, isDisabled, ...props }: import("../../icon").IconProps) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
6
- export declare const ButtonSpinner: import("styled-components").StyledComponent<({ className }: import("../../../common/components/Spinner").Props) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
6
+ export declare const ButtonSpinner: import("styled-components").StyledComponent<({ className, color, size }: import("../../../common/components/Spinner").Props) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
7
7
  export declare const Text: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
8
8
  export declare const Content: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
9
9
  isLoading: ButtonProps['isLoading'];
@@ -0,0 +1,7 @@
1
+ import { Component } from 'react';
2
+ import { TChip, UnstyledChipProps, UnstyledChipState } from './types';
3
+ export declare class UnstyledChip extends Component<UnstyledChipProps, UnstyledChipState> {
4
+ render(): JSX.Element;
5
+ }
6
+ declare const Chip: TChip;
7
+ export default Chip;
@@ -0,0 +1,6 @@
1
+ import { Meta } from '@storybook/react';
2
+ import { ComponentProps } from 'react';
3
+ import { Chip } from '.';
4
+ export declare const Normal: () => JSX.Element;
5
+ declare const ChipStories: Meta<ComponentProps<typeof Chip>>;
6
+ export default ChipStories;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { ChipsProps } from '../types';
3
+ export declare const StyledChipWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, ChipsProps, never>;
4
+ export declare const StyledIcon: import("styled-components").StyledComponent<({ onClick, isDisabled, ...props }: import("../../icon").IconProps) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
@@ -0,0 +1,2 @@
1
+ import Chip from './chips';
2
+ export { Chip };
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ export interface ChipsProps {
3
+ text?: string | number;
4
+ statusEdit?: boolean;
5
+ closeAction?: () => void;
6
+ }
7
+ export declare type TChip = React.FunctionComponent<ChipsProps>;
8
+ export interface UnstyledChipProps extends ChipsProps {
9
+ }
10
+ export interface UnstyledChipState {
11
+ }
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
2
  import { DropdownProps } from './types';
3
- declare const DropdownImpl: ({ className, content, fullWidth, maxWidth, maxHeight, minWidthAsTrigger, placement, renderContent, renderTrigger, triggerStyles, title, forceOpen, disableArrowNavigation, isDisabled, emptyState, }: DropdownProps) => JSX.Element;
3
+ declare const DropdownImpl: ({ className, content, fullWidth, maxWidth, maxHeight, minWidthAsTrigger, placement, renderContent, renderTrigger, triggerStyles, title, forceOpen, disableArrowNavigation, isDisabled, emptyState, onOpen, }: DropdownProps) => JSX.Element;
4
4
  export default DropdownImpl;
@@ -22,6 +22,7 @@ export declare type DropdownProps = {
22
22
  disableArrowNavigation?: boolean;
23
23
  isDisabled?: boolean;
24
24
  emptyState?: JSX.Element;
25
+ onOpen?: (isOpen: boolean) => void;
25
26
  };
26
27
  export declare type DropdownItemType = 'default' | 'danger' | 'success' | 'warning' | 'link';
27
28
  export interface DropdownItemProps {
@@ -0,0 +1,9 @@
1
+ import { checkboxStatus, CheckboxStyles } from '../types';
2
+ export interface CheckboxInputProps {
3
+ value: checkboxStatus;
4
+ disabled?: boolean;
5
+ large?: boolean;
6
+ hasError: boolean;
7
+ }
8
+ declare const Input: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, CheckboxStyles & CheckboxInputProps, keyof CheckboxStyles>;
9
+ export default Input;
@@ -0,0 +1,8 @@
1
+ import { MappedLabelProps } from '../types';
2
+ export interface CheckboxLabelProps {
3
+ large?: boolean;
4
+ disabled?: boolean;
5
+ hasError: boolean;
6
+ }
7
+ declare const Label: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, MappedLabelProps & CheckboxLabelProps, keyof MappedLabelProps>;
8
+ export default Label;
@@ -0,0 +1 @@
1
+ export declare const StyledDatePicker: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
@@ -0,0 +1,13 @@
1
+ import { Dispatch, SetStateAction } from 'react';
2
+ interface ReturnType {
3
+ date: Date | null;
4
+ setDate: Dispatch<SetStateAction<Date | null>>;
5
+ value: string | null;
6
+ setValue: Dispatch<SetStateAction<string | null>>;
7
+ }
8
+ interface Props {
9
+ initialDate?: Date | null;
10
+ initialValue?: string | null;
11
+ }
12
+ declare const useDatePickerValues: ({ initialDate, initialValue }?: Props) => ReturnType;
13
+ export default useDatePickerValues;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { InputCodeProps } from './types';
3
+ declare const InputCode: (props: InputCodeProps) => JSX.Element;
4
+ export default InputCode;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { InputTelephoneProps } from './types';
3
+ declare const InputTelephone: ({ className, disabled, helper, required, label, value, setValue, placeholder, }: InputTelephoneProps) => JSX.Element;
4
+ export default InputTelephone;
@@ -1,4 +1,26 @@
1
1
  import React from 'react';
2
- import { InputTextProps } from './types';
3
- declare const _default: React.ForwardRefExoticComponent<InputTextProps & React.RefAttributes<HTMLInputElement>>;
2
+ declare const _default: React.ForwardRefExoticComponent<import("../label").LabelProps & import("../common/types").CommonFormTypes & {
3
+ className?: string | undefined;
4
+ name?: string | undefined;
5
+ onFocus?: React.FocusEventHandler<HTMLInputElement> | undefined;
6
+ onBlur?: React.FocusEventHandler<HTMLInputElement> | undefined;
7
+ onChange?: React.ChangeEventHandler<HTMLInputElement> | undefined;
8
+ onKeyDown?: React.KeyboardEventHandler<HTMLInputElement> | undefined;
9
+ onKeyPress?: React.KeyboardEventHandler<HTMLInputElement> | undefined;
10
+ onKeyUp?: React.KeyboardEventHandler<HTMLInputElement> | undefined;
11
+ autoFocus?: boolean | undefined;
12
+ required?: boolean | undefined;
13
+ } & {
14
+ actionIcon?: import("../../icon").IconProps | undefined;
15
+ inputType?: "number" | "text" | "password" | undefined;
16
+ isPrefilled?: boolean | undefined;
17
+ isTransparent?: boolean | undefined;
18
+ leadingIcon?: import("../../icon").IconProps | undefined;
19
+ placeholder?: React.ReactText | undefined;
20
+ setValue?: React.Dispatch<React.SetStateAction<string>> | undefined;
21
+ strict?: boolean | undefined;
22
+ tooltip?: import("../../tooltip").TooltipProps | undefined;
23
+ unitDropdownProps?: import(".").UnitDropdownProps | undefined;
24
+ value?: string | number | null | undefined;
25
+ } & React.RefAttributes<HTMLInputElement>>;
4
26
  export default _default;
@@ -6,4 +6,10 @@ export declare const StyledInput: import("styled-components").StyledComponent<"i
6
6
  export declare const FlexRow: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
7
7
  gap: number | undefined;
8
8
  }, never>;
9
+ export declare const CodeInputWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
10
+ gap: number | undefined;
11
+ }, never>;
12
+ export declare const SingleInputWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
13
+ export declare const TelSelectWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
14
+ export declare const TelInputWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
9
15
  export {};
@@ -0,0 +1,7 @@
1
+ declare type CountryPrefix = {
2
+ country: string;
3
+ prefix: string;
4
+ iso: string;
5
+ };
6
+ declare const countriesTelephonePrefixes: CountryPrefix[];
7
+ export default countriesTelephonePrefixes;
@@ -0,0 +1,11 @@
1
+ import { Dispatch, SetStateAction } from 'react';
2
+ import { InputCodeProps } from '../types';
3
+ declare type CodInputHooks = {
4
+ handleInput: (v: string) => void;
5
+ handlePaste: (e: React.ClipboardEvent) => void;
6
+ refs: React.MutableRefObject<(HTMLInputElement | null)[]>;
7
+ setCurrentIndex: Dispatch<SetStateAction<number>>;
8
+ values: (string | null)[];
9
+ };
10
+ declare const useCodeInputHooks: ({ fieldsCount, onChange, status, }: Omit<InputCodeProps, 'helper' | 'className'>) => CodInputHooks;
11
+ export default useCodeInputHooks;
@@ -1,5 +1,7 @@
1
1
  import { UnitDropdownProps } from './components/UnitDropdown';
2
+ import InputCode from './InputCode';
3
+ import InputTelephone from './InputTelephone';
2
4
  import InputText from './InputText';
3
5
  import inputTextPalette, { InputTextPalette } from './inputTextPalette';
4
- import { CodeInputProps, InputTextProps, StandardInputProps, TelephoneInputProps } from './types';
5
- export { CodeInputProps, InputText, inputTextPalette, InputTextPalette, InputTextProps, StandardInputProps, TelephoneInputProps, UnitDropdownProps, };
6
+ import { InputCodeProps, InputTelephoneProps, InputTextProps } from './types';
7
+ export { InputCode, InputCodeProps, InputTelephone, InputTelephoneProps, InputText, inputTextPalette, InputTextPalette, InputTextProps, UnitDropdownProps, };
@@ -1,8 +1,8 @@
1
1
  import { Meta, Story } from '@storybook/react';
2
- import { CodeInputProps, InputTextProps, StandardInputProps, TelephoneInputProps } from './types';
3
- export declare const WithKnobs: Story<StandardInputProps>;
4
- export declare const WithUnitDropdown: Story<StandardInputProps>;
5
- export declare const CodeInputExample: Story<CodeInputProps>;
6
- export declare const TelephoneInputExample: Story<TelephoneInputProps>;
2
+ import { InputCodeProps, InputTelephoneProps, InputTextProps } from './types';
3
+ export declare const WithKnobs: Story<InputTextProps>;
4
+ export declare const WithUnitDropdown: Story<InputTextProps>;
5
+ export declare const CodeInputExample: Story<InputCodeProps>;
6
+ export declare const TelephoneInputExample: Story<InputTelephoneProps>;
7
7
  declare const InputTextStories: Meta<InputTextProps>;
8
8
  export default InputTextStories;
@@ -20,14 +20,14 @@ export declare type InputElementProps = CommonFormTypes & HTMLInputProps & {
20
20
  unitDropdownProps?: UnitDropdownProps;
21
21
  value?: number | string | null;
22
22
  };
23
- export declare type CodeInputProps = LabelProps & CommonFormTypes & Omit<HTMLInputProps, 'onChange'> & {
23
+ export declare type InputCodeProps = LabelProps & CommonFormTypes & Omit<HTMLInputProps, 'onChange'> & {
24
24
  fieldsCount: number;
25
25
  fieldsGap?: number;
26
26
  inputType: 'code';
27
27
  onChange?: (code: (string | null)[]) => void;
28
28
  style?: CSSProperties;
29
29
  };
30
- export declare type TelephoneInputProps = LabelProps & CommonFormTypes & {
30
+ export declare type InputTelephoneProps = LabelProps & CommonFormTypes & {
31
31
  className?: string;
32
32
  inputType: 'telephone';
33
33
  placeholder?: ReactText;
@@ -35,6 +35,5 @@ export declare type TelephoneInputProps = LabelProps & CommonFormTypes & {
35
35
  setValue: Dispatch<SetStateAction<string>>;
36
36
  value?: string | null;
37
37
  };
38
- export declare type StandardInputProps = LabelProps & InputElementProps;
39
- export declare type InputTextProps = StandardInputProps | CodeInputProps | TelephoneInputProps;
38
+ export declare type InputTextProps = LabelProps & InputElementProps;
40
39
  export {};
@@ -0,0 +1,4 @@
1
+ import { PlaceholderProps } from 'react-select';
2
+ import { OptionType } from './Option';
3
+ declare const Placeholder: <O extends OptionType = OptionType, IsMulti extends boolean = false>({ children, }: PlaceholderProps<O, IsMulti, import("react-select").GroupTypeBase<O>>) => JSX.Element;
4
+ export default Placeholder;
@@ -1,6 +1,6 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { LabelProps } from '../label';
3
3
  import { TextAreaElementProps } from './types';
4
4
  export declare type TextAreaProps = LabelProps & TextAreaElementProps;
5
- declare const TextArea: (props: TextAreaProps) => JSX.Element;
6
- export default TextArea;
5
+ declare const _default: React.ForwardRefExoticComponent<LabelProps & TextAreaElementProps & React.RefAttributes<HTMLTextAreaElement>>;
6
+ export default _default;
@@ -1,7 +1,7 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { BoxedInputWrapperProps } from '../../common/styles';
3
3
  import { TextAreaElementProps } from '../types';
4
- declare const TextAreaElement: ({ autoFocus, onBlur, onChange, value, placeholder, disabled, name, onKeyPress, status, onKeyDown, onKeyUp, onFocus, className, setValue, initialHeight, maxLength, isResizable, showCounter, isPrefilled, }: TextAreaElementProps) => JSX.Element;
4
+ declare const TextAreaElement: React.ForwardRefExoticComponent<TextAreaElementProps & React.RefAttributes<HTMLTextAreaElement | null>>;
5
5
  export declare type TextAreaWrapperProps = Pick<TextAreaElementProps, 'disabled' | 'status' | 'initialHeight' | 'isResizable' | 'isPrefilled'>;
6
6
  export declare type TextAreaStyles = Omit<BoxedInputWrapperProps, 'status'>;
7
7
  export default TextAreaElement;
@@ -0,0 +1,23 @@
1
+ import React from 'react';
2
+ interface Props {
3
+ options: Array<{
4
+ key: number;
5
+ label: string;
6
+ }>;
7
+ value: number;
8
+ onClick: (option: {
9
+ key: number;
10
+ label: string;
11
+ }) => void;
12
+ isDisabled?: boolean;
13
+ renderOption?: (props: {
14
+ isDisabled?: boolean;
15
+ isChecked: boolean;
16
+ label: string;
17
+ }) => JSX.Element;
18
+ optionsSpacing?: number;
19
+ style?: React.CSSProperties;
20
+ inline?: boolean;
21
+ }
22
+ export declare const RadioButtonGroup: (props: Props) => JSX.Element;
23
+ export {};
@@ -0,0 +1,6 @@
1
+ import { Meta } from '@storybook/react';
2
+ import { ComponentProps } from 'react';
3
+ import { RadioButtonGroup } from '.';
4
+ export declare const WithKnobs: () => JSX.Element;
5
+ declare const RadioButtonGroupStories: Meta<ComponentProps<typeof RadioButtonGroup>>;
6
+ export default RadioButtonGroupStories;
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ import { InlineMessagesProps, StyledContentProps } from '../types';
3
+ export declare const StyledIconTitle: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
4
+ export declare const StyledContent: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
5
+ export declare const StyledInlineMessageWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, InlineMessagesProps, never>;
6
+ export declare const StyledIconContent: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, StyledContentProps, never>;
7
+ export declare const StyledCloseIconWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
8
+ export declare const StyledCloseIcon: import("styled-components").StyledComponent<({ onClick, isDisabled, ...props }: import("../../icon").IconProps) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
@@ -0,0 +1,2 @@
1
+ import InlineMessage from './inlineMessages';
2
+ export { InlineMessage };
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { InlineMessagesProps } from './types';
3
+ declare const InlineMessage: (props: InlineMessagesProps) => JSX.Element;
4
+ export default InlineMessage;
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import { Meta } from '@storybook/react';
3
+ import { InlineMessagesProps } from './types';
4
+ export declare const Colors: () => JSX.Element;
5
+ export declare const Sizes: () => JSX.Element;
6
+ declare const InlineMessageStories: Meta<InlineMessagesProps>;
7
+ export default InlineMessageStories;
@@ -0,0 +1,29 @@
1
+ /// <reference types="react" />
2
+ import { IconProps } from '../icon';
3
+ export declare type MessageType = 'standard' | 'error' | 'info' | 'warning' | 'success';
4
+ export interface InlineMessagesProps {
5
+ icon?: IconProps;
6
+ renderIcon?: () => JSX.Element;
7
+ title?: string;
8
+ content?: string;
9
+ size?: 'medium' | 'large';
10
+ type?: MessageType;
11
+ renderTitle?: () => JSX.Element;
12
+ renderContent?: () => JSX.Element;
13
+ onClose?: () => void;
14
+ closeIcon?: IconProps;
15
+ renderCloseIcon?: () => JSX.Element;
16
+ componentStyle?: InlineMessageStyle;
17
+ }
18
+ export interface InlineMessageStyle {
19
+ root?: Record<string, unknown>;
20
+ icon?: Record<string, unknown>;
21
+ contentWrapper?: Record<string, unknown>;
22
+ title?: Record<string, unknown>;
23
+ content?: Record<string, unknown>;
24
+ }
25
+ export interface UnstyledInlineMessagePropsInterface extends InlineMessagesProps {
26
+ }
27
+ export interface StyledContentProps {
28
+ margin: boolean;
29
+ }
@@ -0,0 +1,32 @@
1
+ /// <reference types="react" />
2
+ import { TableProps } from './types';
3
+ /**
4
+ * Component Props:
5
+ * @param {T[]} data Array of data to display
6
+ * @param {ColumnsType<T>[]} columns Columns configurations
7
+ * @param {boolean} isSelectable Allow to select rows
8
+ * @param {function} onRowSelectionChange Callback called when rows selection changes
9
+ * @param {function} onSort Callback called on column sort change
10
+ * @param {number[]} favorites Array of favorites
11
+ * @param {function} onFavoritesChange Callback called on favorite change
12
+ * @param {number[]} toggles Array of toggles index
13
+ * @param {function} onTogglesChange Callback called on toggles change
14
+ * @param {RowSize} headerSize Set header height
15
+ * @param {RowSize} rowSize Set row height
16
+ * @param {boolean} sortable Makes all columns sortable, sort can be disabled for a single column inside columns definition
17
+ * @param {boolean} sortDescFirst If true, all sorts will default to descending as their first toggle state.
18
+ * @param {boolean} enableSettings Used to enable table settings
19
+ * @param {SettingsDropdownConfig} settingsDropdownConfig Define dropdown settings configuration
20
+ * @param {RowActions<T>} rowActions Used to define primary and dropdown actions
21
+ * @param {BulkAction<T>} bulkActions Used to define bulk bar actions
22
+ * @param {boolean} isLoading Loading table state
23
+ * @param {AllSelectedCTA} allSelectedCTA clickable text that appears when all rows are selected
24
+ * @param {boolean} noPagination Flag used to disable pagination
25
+ * @param {number} pageSize Define the page size to use in every page
26
+ * @param {number} listSize Total data row counter
27
+ * @param {string} paginationPreviousText Pagination previous button text
28
+ * @param {string} paginationNextText Pagination next button text
29
+ * @param {function} onPaginationChange Callback to handle server side pagination
30
+ */
31
+ declare const Table: <T>({ data, columns, isSelectable, onRowSelectionChange, favorites, onFavoritesChange, toggles, onTogglesChange, rowSize, headerSize, isFavoritesSortable, isTogglesSortable, sortable, sortDescFirst, enableSettings, settingsDropdownConfig, rowActions, bulkActions, isLoading, allSelectedCTA, noPagination, pageSize: pageLength, listSize, paginationPreviousText, paginationNextText, onPaginationChange, uniqueId, onSort, }: TableProps<T>) => JSX.Element;
32
+ export default Table;
@@ -0,0 +1,14 @@
1
+ /// <reference types="react" />
2
+ interface FavoriteProps {
3
+ checked?: boolean;
4
+ disabled?: boolean;
5
+ onChange?: (checked: boolean) => void;
6
+ }
7
+ /**
8
+ * Component Props:
9
+ * @param {boolean} checked Used to set favorite icon status
10
+ * @param {boolean} disabled Disable the favorite icon
11
+ * @param {function} onChange Callback on favorite icon click
12
+ */
13
+ declare const Favorite: ({ checked, onChange }: FavoriteProps) => JSX.Element;
14
+ export default Favorite;
@@ -0,0 +1 @@
1
+ export { default as Favorite } from './Favorite';
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ export declare const Icon: import("styled-components").StyledComponent<({ className, color, icon, isDisabled, onClick, type }: import("../../../../buttons").IconButtonProps) => JSX.Element, import("styled-components").DefaultTheme, {
3
+ checked: boolean;
4
+ }, never>;
@@ -0,0 +1,8 @@
1
+ import { Column } from '@tanstack/react-table';
2
+ import React from 'react';
3
+ declare type ColumnItemProps<T> = {
4
+ column: Column<T, unknown>;
5
+ onDragStart: (event: React.DragEvent<HTMLDivElement>, parent: HTMLDivElement) => void;
6
+ } & Omit<React.HTMLProps<HTMLDivElement>, 'onDragStart'>;
7
+ declare const ColumnItem: <T>({ column, draggable, onDragStart, onDragOver, onDragEnd }: ColumnItemProps<T>) => JSX.Element;
8
+ export default ColumnItem;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ export declare const Container: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
3
+ export declare const IconContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
4
+ export declare const Icon: import("styled-components").StyledComponent<({ className, color, icon, isDisabled, onClick, type }: import("../../../../../../buttons").IconButtonProps) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ import { Table } from '@tanstack/react-table';
3
+ interface ColumnsSettingsProps<T> {
4
+ table: Table<T>;
5
+ visibleColumnsLabel: string;
6
+ }
7
+ declare const ColumnsSettings: <T>({ table, visibleColumnsLabel }: ColumnsSettingsProps<T>) => JSX.Element;
8
+ export default ColumnsSettings;
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import { Table } from '@tanstack/react-table';
3
+ interface DraggableContentProps<T> {
4
+ table: Table<T>;
5
+ }
6
+ export declare const DraggableContent: <T>({ table }: DraggableContentProps<T>) => JSX.Element;
7
+ export {};
@@ -0,0 +1,2 @@
1
+ export { default as ColumnsSettings } from './ColumnsSettings';
2
+ export { default as ColumnItem } from './ColumnItem/ColumnItem';
@@ -0,0 +1,4 @@
1
+ export declare const CustomAccordion: import("styled-components").StyledComponent<import("../../../../../accordions/types").TAccordion, import("styled-components").DefaultTheme, {}, never>;
2
+ export declare const Title: import("styled-components").StyledComponent<"h6", import("styled-components").DefaultTheme, {}, never>;
3
+ export declare const Body: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
4
+ export declare const Divider: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import { Header } from '@tanstack/react-table';
3
+ interface DropdownSettingsProps<T> {
4
+ header: Header<T, unknown>;
5
+ }
6
+ declare const DropdownSettings: <T>({ header }: DropdownSettingsProps<T>) => JSX.Element;
7
+ export default DropdownSettings;
@@ -0,0 +1 @@
1
+ export { default as DropdownSettings } from './DropdownSettings';
@@ -0,0 +1,4 @@
1
+ export declare const Container: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
2
+ export declare const Title: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
3
+ export declare const TitleText: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
4
+ export declare const IconContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ interface RowHeightSettingsProps {
3
+ isDisabled?: boolean;
4
+ rowHeightLabel: string;
5
+ unspecifiedRowsLabel: string;
6
+ smallRowsLabel: string;
7
+ largeRowsLabel: string;
8
+ }
9
+ declare const RowHeightSettings: ({ rowHeightLabel, unspecifiedRowsLabel, smallRowsLabel, largeRowsLabel, isDisabled, }: RowHeightSettingsProps) => JSX.Element;
10
+ export default RowHeightSettings;
@@ -0,0 +1 @@
1
+ export { default as RowHeightSettings } from './RowHeightSettings';
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const Radio: import("styled-components").StyledComponent<({ onChange, helper, initialSelection, options, ...otherProps }: import("../../../../../form/radioGroup").RadioGroupProps) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ import { Header } from '@tanstack/react-table';
3
+ interface SettingsProps<T> {
4
+ header: Header<T, unknown>;
5
+ onOpen?: (isOpen: boolean) => void;
6
+ }
7
+ declare const Settings: <T>({ header, onOpen }: SettingsProps<T>) => JSX.Element;
8
+ export default Settings;
@@ -0,0 +1,2 @@
1
+ export { useColumnValues } from './useColumnValues';
2
+ export { useDropdownSettingsValues } from './useDropdownSettingsValues';
@@ -0,0 +1,8 @@
1
+ import { Column } from '@tanstack/react-table';
2
+ interface ReturnType<T> {
3
+ rightActions: Column<T, unknown>[];
4
+ leftActions: Column<T, unknown>[];
5
+ accessorColumns: Column<T, unknown>[];
6
+ }
7
+ export declare const useColumnValues: <T>(allColumns: Column<T, unknown>[]) => ReturnType<T>;
8
+ export {};
@@ -0,0 +1,13 @@
1
+ import { Header, Table } from '@tanstack/react-table';
2
+ interface ReturnType<T> {
3
+ table: Table<T>;
4
+ isTableEmpty: boolean;
5
+ displaySettingsLabel: string;
6
+ visibleColumnsLabel: string;
7
+ rowHeightLabel: string;
8
+ smallRowsLabel: string;
9
+ largeRowsLabel: string;
10
+ unspecifiedRowsLabel: string;
11
+ }
12
+ export declare const useDropdownSettingsValues: <T>(header: Header<T, unknown>) => ReturnType<T>;
13
+ export {};
@@ -0,0 +1 @@
1
+ export { default as Settings } from './Settings';
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const Icon: import("styled-components").StyledComponent<({ className, color, icon, isDisabled, onClick, type }: import("../../../../buttons").IconButtonProps) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
@@ -0,0 +1,14 @@
1
+ /// <reference types="react" />
2
+ interface ToggleProps {
3
+ checked?: boolean;
4
+ disabled?: boolean;
5
+ onChange?: (checked: boolean) => void;
6
+ }
7
+ /**
8
+ * Component Props:
9
+ * @param {boolean} checked Used to set toggle status
10
+ * @param {boolean} disabled Disable the toggle
11
+ * @param {function} onChange Callback on toggle click
12
+ */
13
+ declare const Toggle: ({ checked, disabled, onChange }: ToggleProps) => JSX.Element;
14
+ export default Toggle;
@@ -0,0 +1,3 @@
1
+ export declare const SLIDER_HEIGHT = 12;
2
+ export declare const SLIDER_WIDTH = 12;
3
+ export declare const SLIDER_MARGIN = 2;
@@ -0,0 +1 @@
1
+ export { default as Toggle } from './Toggle';
@@ -0,0 +1,5 @@
1
+ export declare const Wrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
2
+ export declare const Slider: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {
3
+ disabled: boolean;
4
+ }, never>;
5
+ export declare const Input: import("styled-components").StyledComponent<"input", import("styled-components").DefaultTheme, {}, never>;