@fattureincloud/fic-design-system 0.7.44 → 0.7.45

Sign up to get free protection for your applications and to get access to all the features.
Files changed (151) hide show
  1. package/dist/common/components/Spinner.d.ts +1 -0
  2. package/dist/components/avatar/Avatar.d.ts +1 -0
  3. package/dist/components/avatar/avatar.stories.d.ts +1 -0
  4. package/dist/components/banner/Banner.d.ts +1 -0
  5. package/dist/components/banner/types.d.ts +1 -0
  6. package/dist/components/buttons/button/styled.d.ts +1 -0
  7. package/dist/components/chip/styled.d.ts +1 -0
  8. package/dist/components/circularProgressBar/CircularProgressBar.d.ts +1 -0
  9. package/dist/components/circularProgressBar/types.d.ts +1 -0
  10. package/dist/components/closableCard/ClosableCard.d.ts +4 -0
  11. package/dist/components/closableCard/closableCard.stories.d.ts +6 -0
  12. package/dist/components/closableCard/closableCardPalette.d.ts +3 -0
  13. package/dist/components/closableCard/index.d.ts +3 -0
  14. package/dist/components/closableCard/styled.d.ts +5 -0
  15. package/dist/components/closableCard/types.d.ts +13 -0
  16. package/dist/components/drawer/components/styledDrawerWrapper.d.ts +1 -0
  17. package/dist/components/dropdown/DropdownImpl.d.ts +1 -0
  18. package/dist/components/dropdown/components/DefaultDropdown.d.ts +1 -0
  19. package/dist/components/dropdown/components/DefaultTrigger.d.ts +1 -0
  20. package/dist/components/dropdown/components/Item.d.ts +1 -0
  21. package/dist/components/dropdown/components/Separator.d.ts +1 -0
  22. package/dist/components/dropdown/components/Title.d.ts +1 -0
  23. package/dist/components/dropdown/components/UserListItem.d.ts +1 -0
  24. package/dist/components/dropdown/dropdown.stories.d.ts +1 -0
  25. package/dist/components/dropdown/types.d.ts +1 -0
  26. package/dist/components/editableInput/EditableInput.d.ts +1 -0
  27. package/dist/components/editableInput/components/CustomInput.d.ts +1 -0
  28. package/dist/components/editableInput/components/TextAreaPopup.d.ts +1 -0
  29. package/dist/components/floatingBadge/withBadge.d.ts +1 -0
  30. package/dist/components/form/checkbox/Checkbox.d.ts +1 -0
  31. package/dist/components/form/datepicker/DatePicker.d.ts +1 -0
  32. package/dist/components/form/datepicker/DatePickerImpl.d.ts +1 -0
  33. package/dist/components/form/datepicker/components/CustomButton.d.ts +1 -0
  34. package/dist/components/form/datepicker/components/DatePickerHeader.d.ts +1 -0
  35. package/dist/components/form/datepicker/components/MonthPicker.d.ts +1 -0
  36. package/dist/components/form/datepicker/components/YearPicker.d.ts +1 -0
  37. package/dist/components/form/fileUploader/FileUploader.d.ts +1 -0
  38. package/dist/components/form/inputText/InputCode.d.ts +1 -0
  39. package/dist/components/form/inputText/InputTelephone.d.ts +1 -0
  40. package/dist/components/form/inputText/components/StatusIcon.d.ts +1 -0
  41. package/dist/components/form/inputText/components/UnitDropdown.d.ts +1 -0
  42. package/dist/components/form/inputText/components/unitDropdown/UnitDropdownTrigger.d.ts +1 -0
  43. package/dist/components/form/label/Label.d.ts +1 -0
  44. package/dist/components/form/label/types.d.ts +1 -0
  45. package/dist/components/form/radio/Radio.d.ts +1 -0
  46. package/dist/components/form/radioGroup/RadioGroup.d.ts +1 -0
  47. package/dist/components/form/select/Select.d.ts +1 -0
  48. package/dist/components/form/select/components/ClearIndicator.d.ts +1 -0
  49. package/dist/components/form/select/components/Control.d.ts +1 -0
  50. package/dist/components/form/select/components/DropdownIndicator.d.ts +1 -0
  51. package/dist/components/form/select/components/FooterActions.d.ts +1 -0
  52. package/dist/components/form/select/components/MenuList.d.ts +1 -0
  53. package/dist/components/form/select/components/Option.d.ts +1 -0
  54. package/dist/components/form/select/components/SingleValue.d.ts +1 -0
  55. package/dist/components/form/textArea/components/CharCounter.d.ts +1 -0
  56. package/dist/components/graphic/Graphic.d.ts +4 -0
  57. package/dist/components/graphic/components/ChartLegend.d.ts +9 -0
  58. package/dist/components/graphic/components/GraphButton.d.ts +8 -0
  59. package/dist/components/graphic/components/GraphIndicators.d.ts +14 -0
  60. package/dist/components/graphic/graphic.stories.d.ts +7 -0
  61. package/dist/components/graphic/index.d.ts +2 -0
  62. package/dist/components/graphic/stories/data.d.ts +2 -0
  63. package/dist/components/graphic/stories/styled.d.ts +4 -0
  64. package/dist/components/graphic/styled.d.ts +3 -0
  65. package/dist/components/graphic/types.d.ts +52 -0
  66. package/dist/components/graphic/utils.d.ts +6 -0
  67. package/dist/components/icon/Icon.d.ts +1 -0
  68. package/dist/components/inlineMessage/InlineMessage.d.ts +1 -0
  69. package/dist/components/inlineMessage/styled.d.ts +1 -0
  70. package/dist/components/inlineMessage/types.d.ts +1 -0
  71. package/dist/components/layout/sidebarItem/SidebarItem.d.ts +1 -0
  72. package/dist/components/layout/sidebarItem/components/SidebarItemDropdown.d.ts +1 -0
  73. package/dist/components/layout/sidebarItem/styled.d.ts +1 -0
  74. package/dist/components/microTag/MicroTag.d.ts +1 -0
  75. package/dist/components/modals/confirmationModalStyled.d.ts +6 -1
  76. package/dist/components/modals/stepModal/StepModal.d.ts +1 -0
  77. package/dist/components/modals/stepModal/components/StepModalBody.d.ts +1 -0
  78. package/dist/components/modals/stepModal/components/StepModalFooter.d.ts +1 -0
  79. package/dist/components/modals/stepModal/components/StepModalHeader.d.ts +1 -0
  80. package/dist/components/modals/stepModal/styled.d.ts +2 -1
  81. package/dist/components/monthlyTab/MonthlyTab.d.ts +1 -0
  82. package/dist/components/monthlyTab/components/month/Month.d.ts +1 -0
  83. package/dist/components/newTable/Table.d.ts +1 -0
  84. package/dist/components/newTable/components/action/settings/ColumnsSettings/ColumnItem/styled.d.ts +1 -0
  85. package/dist/components/newTable/components/action/settings/ColumnsSettings/ColumnsSettings.d.ts +1 -0
  86. package/dist/components/newTable/components/action/settings/ColumnsSettings/DraggableContent/DraggableContent.d.ts +1 -0
  87. package/dist/components/newTable/components/action/settings/DropdownSettings/DropdownSettings.d.ts +1 -0
  88. package/dist/components/newTable/components/action/settings/RowHeightSettings/RowHeightSettings.d.ts +1 -0
  89. package/dist/components/newTable/components/action/settings/RowHeightSettings/styled.d.ts +1 -0
  90. package/dist/components/newTable/components/action/settings/Settings.d.ts +1 -0
  91. package/dist/components/newTable/components/action/settings/styled.d.ts +1 -0
  92. package/dist/components/newTable/components/action/toggle/Toggle.d.ts +1 -0
  93. package/dist/components/newTable/components/body/Body.d.ts +1 -0
  94. package/dist/components/newTable/components/bulkBar/BulkBar.d.ts +1 -0
  95. package/dist/components/newTable/components/cell/Cell.d.ts +1 -0
  96. package/dist/components/newTable/components/cell/customActionCell/CustomActionCell.d.ts +1 -0
  97. package/dist/components/newTable/components/cell/customActionCell/DropdownActionCell.d.ts +1 -0
  98. package/dist/components/newTable/components/cell/customActionCell/PrimaryActionCell.d.ts +1 -0
  99. package/dist/components/newTable/components/cell/customActionCell/styled.d.ts +1 -0
  100. package/dist/components/newTable/components/cell/customCell/CustomCell.d.ts +1 -0
  101. package/dist/components/newTable/components/cell/customCell/CustomInput.d.ts +1 -0
  102. package/dist/components/newTable/components/cell/customCell/TextAreaPopup.d.ts +1 -0
  103. package/dist/components/newTable/components/cell/customCell/styled.d.ts +1 -0
  104. package/dist/components/newTable/components/cell/loadingCell/LoadingCell.d.ts +1 -0
  105. package/dist/components/newTable/components/footer/Footer.d.ts +1 -0
  106. package/dist/components/newTable/components/header/Header.d.ts +1 -0
  107. package/dist/components/newTable/components/header/headerCell/ActionHeaderCell.d.ts +1 -0
  108. package/dist/components/newTable/styled.d.ts +1 -0
  109. package/dist/components/newTable/types.d.ts +1 -0
  110. package/dist/components/oldTable/Table.d.ts +1 -0
  111. package/dist/components/oldTable/components/EmptyState.d.ts +1 -0
  112. package/dist/components/oldTable/components/Pagination.d.ts +1 -0
  113. package/dist/components/oldTable/components/SelectedRowsCount.d.ts +1 -0
  114. package/dist/components/oldTable/components/actions/ActionsCell.d.ts +1 -0
  115. package/dist/components/oldTable/components/actions/DropdownActions.d.ts +1 -0
  116. package/dist/components/oldTable/components/actions/PrimaryAction.d.ts +1 -0
  117. package/dist/components/oldTable/components/checkboxes/Cell.d.ts +1 -0
  118. package/dist/components/oldTable/components/checkboxes/Header.d.ts +1 -0
  119. package/dist/components/oldTable/components/loadingCell/LoadingCell.d.ts +1 -0
  120. package/dist/components/oldTable/components/pagination/PaginationButtons.d.ts +1 -0
  121. package/dist/components/oldTable/components/tableHeader/SortIndicator.d.ts +1 -0
  122. package/dist/components/oldTable/components/tableHeader/TableHeader.d.ts +1 -0
  123. package/dist/components/oldTable/stories/components/CustomPerson.d.ts +1 -0
  124. package/dist/components/oldTable/stories/components/Role.d.ts +1 -0
  125. package/dist/components/segmentButton/SegmentButton.d.ts +1 -0
  126. package/dist/components/stepper/Stepper.d.ts +1 -0
  127. package/dist/components/stepper/components/StepItem.d.ts +1 -0
  128. package/dist/components/switch/Switch.d.ts +1 -0
  129. package/dist/components/tabs/common/types.d.ts +1 -0
  130. package/dist/components/tabs/dropdownTabs/TabsDropdown.d.ts +1 -0
  131. package/dist/components/tabs/dropdownTabs/TabsDropdownTrigger.d.ts +1 -0
  132. package/dist/components/tabs/dropdownTabs.d.ts +1 -0
  133. package/dist/components/tabs/scrollableTabs.d.ts +1 -0
  134. package/dist/components/tabs/tabs.stories.d.ts +1 -0
  135. package/dist/components/tag/styled.d.ts +1 -0
  136. package/dist/components/tip/shortcutTip.d.ts +1 -0
  137. package/dist/components/tip/tip.d.ts +1 -0
  138. package/dist/components/toast/components/toastContent.d.ts +1 -0
  139. package/dist/components/tooltip/Tooltip.d.ts +4 -1
  140. package/dist/components/tooltip/styled.d.ts +1 -1
  141. package/dist/components/tooltip/tooltip.stories.d.ts +7 -5
  142. package/dist/components/verticalTab/VerticalTab.d.ts +1 -0
  143. package/dist/components/verticalTab/types.d.ts +1 -0
  144. package/dist/components/verticalTab/verticalTab.stories.d.ts +1 -0
  145. package/dist/index.d.ts +4 -3
  146. package/dist/index.esm.js +9 -9
  147. package/dist/index.esm.js.map +1 -1
  148. package/dist/index.js +9 -9
  149. package/dist/index.js.map +1 -1
  150. package/dist/styles/theme.d.ts +2 -0
  151. package/package.json +7 -2
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { SizeProp } from '@fortawesome/fontawesome-svg-core';
2
3
  import { iconColors } from '../../components/icon';
3
4
  export interface Props {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { AvatarProps } from './types';
2
3
  declare const Avatar: ({ backgroundColor, className, icon, image, onClick, placeholder, randomColor, size, style, text, textColor, }: AvatarProps) => JSX.Element;
3
4
  export default Avatar;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Meta } from '@storybook/react';
2
3
  import { AvatarProps } from './types';
3
4
  export declare const Initials: () => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { BannerProps } from './types';
2
3
  /**
3
4
  * Component Props:
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { paletteColor } from '../../styles/types';
2
3
  import { IconProps } from '../icon';
3
4
  export interface BannerProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ButtonProps } from './Button';
2
3
  import { ButtonStyles, WrapperProps } from './types';
3
4
  export declare const LeftIcon: import("styled-components").StyledComponent<({ onClick, isDisabled, ...props }: import("../../icon").IconProps) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ChipProps } from './types';
2
3
  export declare const LeftIcon: import("styled-components").StyledComponent<({ onClick, isDisabled, ...props }: import("../icon").IconProps) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
3
4
  export declare const RightIcon: import("styled-components").StyledComponent<({ onClick, isDisabled, ...props }: import("../icon").IconProps) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { CircularProgressBarProps } from './index';
2
3
  /**
3
4
  * Component Props:
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { paletteColor } from '../../styles/types';
2
3
  export interface CircularProgressBarProps {
3
4
  percentage: number;
@@ -0,0 +1,4 @@
1
+ import { ReactElement } from 'react';
2
+ import { ClosableCardProps } from './types';
3
+ declare const ClosableCard: ({ title, subtitle, renderSubtitleElement, onClose, className, }: ClosableCardProps) => ReactElement;
4
+ export default ClosableCard;
@@ -0,0 +1,6 @@
1
+ import { Meta, Story } from '@storybook/react';
2
+ import { ComponentProps } from 'react';
3
+ import { ClosableCard, ClosableCardProps } from './index';
4
+ export declare const Template: Story<ClosableCardProps>;
5
+ declare const ClosableCardStories: Meta<ComponentProps<typeof ClosableCard>>;
6
+ export default ClosableCardStories;
@@ -0,0 +1,3 @@
1
+ import { ClosableCardPalette } from './types';
2
+ declare const closableCardPalette: ClosableCardPalette;
3
+ export default closableCardPalette;
@@ -0,0 +1,3 @@
1
+ export { ClosableCardProps, ClosableCardPalette } from './types';
2
+ export { default as ClosableCard } from './ClosableCard';
3
+ export { default as closableCardPalette } from './closableCardPalette';
@@ -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 Title: import("styled-components").StyledComponent<({ children, type, ...otherProps }: import("../../common/components/typography/types").TextProps & import("react").HTMLAttributes<HTMLDivElement>) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
4
+ export declare const Subtitle: import("styled-components").StyledComponent<({ children, type, ...otherProps }: import("../../common/components/typography/types").TextProps & import("react").HTMLAttributes<HTMLDivElement>) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
5
+ export declare const CloseIcon: import("styled-components").StyledComponent<({ onClick, isDisabled, ...props }: import("../icon").IconProps) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
@@ -0,0 +1,13 @@
1
+ import { ReactElement } from 'react';
2
+ import { paletteColor } from '../../styles/types';
3
+ export interface ClosableCardProps {
4
+ title: string;
5
+ subtitle?: string;
6
+ renderSubtitleElement?: () => ReactElement;
7
+ onClose?: () => void;
8
+ className?: string;
9
+ }
10
+ export declare type ClosableCardPalette = {
11
+ background: paletteColor;
12
+ border: paletteColor;
13
+ };
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { DrawerProps } from '../drawer';
2
3
  export declare const StyledDrawerWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, DrawerProps, never>;
3
4
  export declare const StyledIcon: import("styled-components").StyledComponent<({ onClick, isDisabled, ...props }: import("../../icon").IconProps) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { DropdownProps } from './types';
2
3
  declare const DropdownImpl: ({ className, content, fullWidth, maxWidth, maxHeight, minWidthAsTrigger, placement, renderContent, renderTrigger, triggerStyles, title, forceOpen, disableArrowNavigation, isDisabled, emptyState, onOpen, withPadding, offsetY, forceClose, onClose, }: DropdownProps) => JSX.Element;
3
4
  export default DropdownImpl;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { DefaultDropdownProps } from '../types';
2
3
  declare const DefaultDropdown: ({ closeDropdown, componentId, content, fullWidth, maxWidth, rowHasFocus, setHighlightedItem, emptyState, }: DefaultDropdownProps) => JSX.Element;
3
4
  export default DefaultDropdown;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { DropdownTriggerProps } from '../types';
2
3
  declare const DefaultTrigger: ({ title, isDisabled }: DropdownTriggerProps) => JSX.Element;
3
4
  export default DefaultTrigger;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { DropdownItemProps, StyledItemProps } from '../types';
2
3
  import { DropdownItemStyles } from '../utils';
3
4
  declare const Item: ({ active, className, componentId, icon, isDisabled, onClick, rowHasFocus, shortcut, text, ...rest }: DropdownItemProps & {
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Separator: () => JSX.Element;
2
3
  export default Separator;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { TitleProps } from '../types';
2
3
  declare const Title: (props: TitleProps) => JSX.Element;
3
4
  export default Title;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { UserListItemProps } from '../types';
2
3
  export declare const UserListItem: (props: UserListItemProps) => JSX.Element;
3
4
  export declare const UserListWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Meta } from '@storybook/react';
2
3
  import { DropdownProps } from './types';
3
4
  export declare const Simple: () => JSX.Element;
@@ -42,6 +42,7 @@ export interface DropdownItemProps {
42
42
  isDisabled?: boolean;
43
43
  type?: DropdownItemType;
44
44
  onMouseEnter?: () => void;
45
+ label?: string;
45
46
  }
46
47
  export interface UserListItemProps {
47
48
  img?: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  interface Props {
2
3
  hover: boolean;
3
4
  content: string | number | null;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  interface Props {
2
3
  hover: boolean;
3
4
  content: string | number | null;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  interface Props {
2
3
  content: string | number | null;
3
4
  unitSymbol?: string | undefined;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { WithBadgeProps } from './types';
2
3
  /**
3
4
  * Component Props:
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { CheckboxProps } from './types';
2
3
  /**
3
4
  * Component Props:
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { DatePickerProps } from './types';
2
3
  /**
3
4
  * Component Props:
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { DatePickerImplProps } from './types';
2
3
  declare const DatePickerImpl: (props: DatePickerImplProps) => JSX.Element;
3
4
  export default DatePickerImpl;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  interface Props {
2
3
  onClick: () => void;
3
4
  selected?: boolean;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ReactDatePickerCustomHeaderProps } from 'react-datepicker';
2
3
  export interface DatePickerHeaderProps extends ReactDatePickerCustomHeaderProps {
3
4
  allowMonthView: boolean;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ReactDatePickerCustomHeaderProps } from 'react-datepicker';
2
3
  declare type Props = Pick<ReactDatePickerCustomHeaderProps, 'changeMonth' | 'date'>;
3
4
  declare const MonthPicker: ({ changeMonth, date }: Props) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ReactDatePickerCustomHeaderProps } from 'react-datepicker';
2
3
  interface Props extends Pick<ReactDatePickerCustomHeaderProps, 'date' | 'changeYear'> {
3
4
  yearsDisplayed: number;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FileRejection } from 'react-dropzone';
2
3
  import { CustomPalette, FileType, FileUploaderSize, FileUploaderStatus } from './types';
3
4
  export declare type fileUploaderOnDrop = (acceptedFiles: File[], rejectedFiles: FileRejection[]) => void;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { InputCodeProps } from './types';
2
3
  declare const InputCode: (props: InputCodeProps) => JSX.Element;
3
4
  export default InputCode;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { InputTelephoneProps } from './types';
2
3
  declare const InputTelephone: ({ className, disabled, helper, required, label, value, setValue, placeholder, }: InputTelephoneProps) => JSX.Element;
3
4
  export default InputTelephone;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { statusType } from '../../common/types';
2
3
  interface Props {
3
4
  status: statusType;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { DropdownProps } from '../../../dropdown/types';
2
3
  import { Unit } from './unitDropdown/UnitDropdownTrigger';
3
4
  export interface UnitDropdownProps extends Pick<DropdownProps, 'renderContent' | 'placement' | 'className' | 'triggerStyles' | 'content' | 'maxWidth' | 'minWidthAsTrigger' | 'forceOpen'> {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export interface Unit {
2
3
  name: string;
3
4
  shortName?: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { LabelProps } from './';
2
3
  /**
3
4
  * Component Props:
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { paletteColor } from '../../..';
2
3
  export interface WrapperProps {
3
4
  disabled?: boolean;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { RadioProps } from './types';
2
3
  /**
3
4
  * Component Props:
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { RadioGroupProps } from './types';
2
3
  /**
3
4
  * Component Props:
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { OptionType } from './components/Option';
2
3
  import { AsyncCreatableSelectProps, AsyncSelectProps, CreatableSelectProps, SelectProps } from './types';
3
4
  export declare const Select: <O extends OptionType = OptionType, IsMulti extends boolean = false>(props: SelectProps<O, IsMulti, import("react-select").Props<O, IsMulti, import("react-select").GroupTypeBase<O>>>) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { IndicatorProps } from 'react-select/src/components/indicators';
2
3
  import { OptionType } from './Option';
3
4
  declare const ClearIndicator: <O extends OptionType = OptionType, IsMulti extends boolean = false>({ isDisabled, clearValue, }: IndicatorProps<O, IsMulti, import("react-select").GroupTypeBase<O>>) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ControlProps } from 'react-select';
2
3
  import { OptionType } from './Option';
3
4
  declare const Control: <O extends OptionType = OptionType, IsMulti extends boolean = false>({ innerProps: { onMouseDown }, children, }: ControlProps<O, IsMulti, import("react-select").GroupTypeBase<O>>) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { IndicatorProps } from 'react-select';
2
3
  import { OptionType } from './Option';
3
4
  declare const DropdownIndicator: <O extends OptionType = OptionType, IsMulti extends boolean = false>({ selectProps, }: IndicatorProps<O, IsMulti, import("react-select").GroupTypeBase<O>>) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { DropdownItemProps } from '../../../dropdown';
2
3
  export interface SelectActionsType extends DropdownItemProps {
3
4
  closeOnClick?: boolean;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { MenuListComponentProps } from 'react-select/src/components/Menu';
2
3
  import { OptionType } from './Option';
3
4
  declare const MenuList: <O extends OptionType = OptionType, IsMulti extends boolean = false>(props: MenuListComponentProps<O, IsMulti, import("react-select").GroupTypeBase<O>>) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { OptionProps } from 'react-select';
2
3
  import { OptionTypeBase } from 'react-select/src/types';
3
4
  import { IconProps } from '../../../icon';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { SingleValueProps } from 'react-select';
2
3
  import { OptionType } from './Option';
3
4
  declare const SingleValue: <O extends OptionType = OptionType>({ data: { icon, label }, }: SingleValueProps<O, import("react-select").GroupTypeBase<O>>) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export interface CharCounterProps extends CharCounterOptions {
2
3
  length: number;
3
4
  }
@@ -0,0 +1,4 @@
1
+ import { ReactElement } from 'react';
2
+ import { GraphicProps } from './types';
3
+ declare const Graphic: ({ data, showIndicators, graphicSettingsContent, periodContent, renderYearDropdownContent, yearDropdownButtonText, renderEmptyFilters, }: GraphicProps) => ReactElement;
4
+ export default Graphic;
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ import { Legend, LegendItem } from '../types';
3
+ interface ChartLegendProps {
4
+ legend: Legend[];
5
+ setToggleLegendItem: (elem: LegendItem) => void;
6
+ toggleLegendItem: LegendItem;
7
+ }
8
+ declare const ChartLegend: ({ legend, setToggleLegendItem, toggleLegendItem }: ChartLegendProps) => JSX.Element;
9
+ export default ChartLegend;
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ import { IconProps } from '../../icon';
3
+ interface GraphButtonProps {
4
+ text?: string;
5
+ icon?: IconProps;
6
+ }
7
+ declare const GraphButton: ({ text, icon }: GraphButtonProps) => JSX.Element;
8
+ export default GraphButton;
@@ -0,0 +1,14 @@
1
+ import { ReactElement } from 'react';
2
+ import { DropdownItemProps, renderContentType } from '../../dropdown';
3
+ import { Legend, LegendItem } from '../types';
4
+ interface GraphIndicatorsProps {
5
+ legend: Legend[];
6
+ setToggleLegendItem: (elem: LegendItem) => void;
7
+ toggleLegendItem: LegendItem;
8
+ graphicSettingsContent?: DropdownItemProps[];
9
+ periodContent?: DropdownItemProps[];
10
+ renderYearDropdownContent?: renderContentType;
11
+ yearDropdownButtonText?: string;
12
+ }
13
+ declare const GraphIndicators: ({ legend, setToggleLegendItem, toggleLegendItem, graphicSettingsContent, renderYearDropdownContent, yearDropdownButtonText, periodContent, }: GraphIndicatorsProps) => ReactElement;
14
+ export default GraphIndicators;
@@ -0,0 +1,7 @@
1
+ import { Meta, Story } from '@storybook/react';
2
+ import { ComponentProps } from 'react';
3
+ import { Graphic, GraphicProps } from './index';
4
+ export declare const Template: Story<GraphicProps>;
5
+ export declare const EmptyFilters: Story<GraphicProps>;
6
+ declare const GraphicStories: Meta<ComponentProps<typeof Graphic>>;
7
+ export default GraphicStories;
@@ -0,0 +1,2 @@
1
+ export { default as Graphic } from './Graphic';
2
+ export { GraphicProps, Legend, GraphicData, LegendItem } from './types';
@@ -0,0 +1,2 @@
1
+ import { GraphicData } from '../types';
2
+ export declare const data: GraphicData[];
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ export declare const DropdownText: import("styled-components").StyledComponent<({ children, type, ...otherProps }: import("../../../common/components/typography/types").TextProps & import("react").HTMLAttributes<HTMLDivElement>) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
3
+ export declare const DropdownParagraph: import("styled-components").StyledComponent<({ children, type, ...otherProps }: import("../../../common/components/typography/types").TextProps & import("react").HTMLAttributes<HTMLDivElement>) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
4
+ export declare const Divider: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ export declare const Container: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
3
+ export declare const GraphTooltip: import("styled-components").StyledComponent<({ message, placement, className, children, type, onMouseEnter, onMouseLeave, showAlways, showAfterSeconds, hideAfterSeconds, callbackAfterTimeout, onOpen, icon, renderButton, }: import("../tooltip").TooltipProps) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
@@ -0,0 +1,52 @@
1
+ import { DatumValue } from '@nivo/line';
2
+ import { Serie } from '@nivo/line';
3
+ import { ReactElement } from 'react';
4
+ import { paletteColor } from '../../styles/types';
5
+ import { DropdownItemProps, renderContentType } from '../dropdown';
6
+ import { OrdinalColorScaleConfig } from '@nivo/colors/dist/types/scales/ordinalColorScale';
7
+ export declare type OrdinalColorScale = OrdinalColorScaleConfig & {
8
+ color: string;
9
+ };
10
+ export interface GraphicData extends Serie {
11
+ prevTooltipLabel?: string;
12
+ afterTooltipLabel?: string;
13
+ color?: paletteColor;
14
+ }
15
+ export interface GraphicProps {
16
+ data: GraphicData[];
17
+ showIndicators: boolean;
18
+ graphicSettingsContent?: DropdownItemProps[];
19
+ periodContent?: DropdownItemProps[];
20
+ yearContent?: DropdownItemProps[];
21
+ renderYearDropdownContent?: renderContentType;
22
+ yearDropdownButtonText?: string;
23
+ renderEmptyFilters?: () => ReactElement;
24
+ }
25
+ export declare type Legend = {
26
+ text: string | number;
27
+ color?: paletteColor;
28
+ };
29
+ export declare type LegendItem = {
30
+ [index: number]: boolean;
31
+ };
32
+ export interface Point {
33
+ point: {
34
+ id: string;
35
+ index: number;
36
+ serieId: string | number;
37
+ serieColor: string;
38
+ x: number;
39
+ y: number;
40
+ color: string;
41
+ borderColor: string;
42
+ data: {
43
+ x: DatumValue;
44
+ xFormatted: string | number;
45
+ y: DatumValue;
46
+ yFormatted: string | number;
47
+ yStacked?: number;
48
+ prevTooltipLabel?: string | number;
49
+ afterTooltipLabel?: string | number;
50
+ };
51
+ };
52
+ }
@@ -0,0 +1,6 @@
1
+ import { DropdownItemProps } from '../dropdown';
2
+ import { GraphicData, Legend, LegendItem } from './types';
3
+ export declare const getLegendValues: (data: GraphicData[]) => Legend[];
4
+ export declare const getInitialLegendValues: (data: GraphicData[]) => LegendItem;
5
+ export declare const getDropdownLabel: (content: DropdownItemProps[]) => string;
6
+ export declare const getDisabledLegendItem: (elemIndex: number, toggleLegendItem: LegendItem) => boolean;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FontAwesomeIconProps } from '@fortawesome/react-fontawesome';
2
3
  import { iconColors } from './iconPalette';
3
4
  export interface IconProps extends Omit<FontAwesomeIconProps, 'color'> {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { InlineMessageProps } from './types';
2
3
  /**
3
4
  * Component Props:
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { InlineMessageProps, InlineMessageType, StyledContentProps } from './types';
2
3
  export declare const StyledIconTitle: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
3
4
  export declare const StyledContent: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { paletteColor } from '../../styles/types';
2
3
  import { IconProps } from '../icon';
3
4
  export declare enum InlineMessageType {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { SidebarItemProps } from './types';
2
3
  /**
3
4
  * Component Props:
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { SidebarItemDropdownProps } from '../types';
2
3
  declare const SidebarItemDropdown: ({ className, content, forceOpen }: SidebarItemDropdownProps) => JSX.Element;
3
4
  export default SidebarItemDropdown;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { paletteColor } from '../../../styles/types';
2
3
  import { SidebarItemStyles } from './types';
3
4
  export interface WrapperProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { TagType } from './types';
2
3
  export interface MicroTagProps {
3
4
  text: string;
@@ -1,4 +1,9 @@
1
- export declare const CustomSizeModal: import("styled-components").StyledComponent<any, import("styled-components").DefaultTheme, any, any>;
1
+ import React from 'react';
2
+ import { Modal } from './modals';
3
+ import { ModalPropsInterface } from './types';
4
+ export declare const CustomSizeModal: import("styled-components").StyledComponent<typeof Modal, import("styled-components").DefaultTheme, ModalPropsInterface & {
5
+ children: React.ReactNode;
6
+ }, never>;
2
7
  export declare const TitleContent: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
3
8
  export declare const BodyContent: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
4
9
  export declare const Question: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { StepModalProps, UknObj } from './types';
2
3
  declare const StepModal: <T extends UknObj>({ allowBackdropClose, className, steps, ...otherProps }: StepModalProps<T>) => JSX.Element | null;
3
4
  export default StepModal;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { StepModalBodyProps } from '../types';
2
3
  declare const StepModalBody: ({ children, ...otherProps }: StepModalBodyProps) => JSX.Element;
3
4
  export default StepModalBody;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { StepModalFooterProps } from '../types';
2
3
  declare const StepModalFooter: ({ buttons, children, className }: StepModalFooterProps) => JSX.Element;
3
4
  export default StepModalFooter;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { StepModalHeaderProps } from '../types';
2
3
  declare const StepModalHeader: ({ children, className, currentStep, setIsOpen, setStep, subtitle, title, }: StepModalHeaderProps) => JSX.Element;
3
4
  export default StepModalHeader;
@@ -1,3 +1,4 @@
1
+ import { Modal } from '../modals';
1
2
  import { ContentWrapperProps } from './types';
2
3
  export declare const ModalBodyWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, ContentWrapperProps, never>;
3
- export declare const StyledModal: import("styled-components").StyledComponent<any, import("styled-components").DefaultTheme, any, any>;
4
+ export declare const StyledModal: import("styled-components").StyledComponent<typeof Modal, import("styled-components").DefaultTheme, {}, never>;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { MonthlyTabProps } from './types';
2
3
  declare const MonthlyTrend: ({ data, selected, selectedChange, onSelectionChange, monthText, }: MonthlyTabProps) => JSX.Element;
3
4
  export default MonthlyTrend;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  interface MonthProps {
2
3
  monthNumber: number;
3
4
  percentage: number;