@ssa-ui-kit/core 1.1.7 → 1.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (129) hide show
  1. package/dist/components/Charts/BarLineComplexChart/BarLIneComplexChart.context.d.ts +3 -0
  2. package/dist/components/Charts/BarLineComplexChart/BarLineComplexChart.d.ts +2 -0
  3. package/dist/components/Charts/BarLineComplexChart/BarLineComplexChartInternal.d.ts +2 -0
  4. package/dist/components/Charts/BarLineComplexChart/BarLineComplexChartTooltip.d.ts +2 -0
  5. package/dist/components/Charts/BarLineComplexChart/__mock__/data.d.ts +3 -0
  6. package/dist/components/Charts/BarLineComplexChart/colorPalette.d.ts +1 -0
  7. package/dist/components/Charts/BarLineComplexChart/index.d.ts +1 -0
  8. package/dist/components/Charts/BarLineComplexChart/types.d.ts +28 -0
  9. package/dist/components/Charts/BarLineComplexChart/useChartInfo.d.ts +10 -0
  10. package/dist/components/{PieChart → Charts/PieChart}/PieChartLegendMarker.d.ts +1 -1
  11. package/dist/components/{PieChart → Charts/PieChart}/styles.d.ts +1 -1
  12. package/dist/components/{PieChart → Charts/PieChart}/types.d.ts +1 -1
  13. package/dist/components/{SegmentedPieChart → Charts/SegmentedPieChart}/types.d.ts +3 -3
  14. package/dist/components/Charts/hooks/index.d.ts +1 -0
  15. package/dist/components/Charts/hooks/usePlotlyDefaultConfig.d.ts +10 -0
  16. package/dist/components/Charts/index.d.ts +3 -0
  17. package/dist/components/Input/InputStatusError.d.ts +3 -1
  18. package/dist/components/Input/InputStatusSuccess.d.ts +3 -1
  19. package/dist/components/Input/types.d.ts +2 -0
  20. package/dist/components/Pagination/Pagination.d.ts +1 -1
  21. package/dist/components/Pagination/types.d.ts +2 -0
  22. package/dist/components/Tooltip/types.d.ts +5 -3
  23. package/dist/components/WidgetCard/WidgetCard.d.ts +1 -1
  24. package/dist/components/WidgetCard/WidgetCardBase.d.ts +2 -0
  25. package/dist/components/WidgetCard/WithWidgetCard.d.ts +1 -1
  26. package/dist/components/WidgetCard/types.d.ts +2 -0
  27. package/dist/components/index.d.ts +1 -2
  28. package/dist/contexts/Translation/TranslationContext.d.ts +9 -0
  29. package/dist/contexts/Translation/config.d.ts +3 -0
  30. package/dist/contexts/Translation/index.d.ts +2 -0
  31. package/dist/contexts/Translation/types.d.ts +8 -0
  32. package/dist/contexts/index.d.ts +1 -0
  33. package/dist/index.d.ts +1 -0
  34. package/dist/index.js +1 -1
  35. package/dist/index.js.map +1 -1
  36. package/dist/types/json.d.ts +5 -0
  37. package/jest-setup.ts +3 -0
  38. package/package.json +5 -2
  39. package/src/components/Charts/BarLineComplexChart/BarLIneComplexChart.context.tsx +54 -0
  40. package/src/components/Charts/BarLineComplexChart/BarLineComplexChart.stories.tsx +47 -0
  41. package/src/components/Charts/BarLineComplexChart/BarLineComplexChart.tsx +26 -0
  42. package/src/components/Charts/BarLineComplexChart/BarLineComplexChartInternal.tsx +135 -0
  43. package/src/components/Charts/BarLineComplexChart/BarLineComplexChartTooltip.tsx +43 -0
  44. package/src/components/Charts/BarLineComplexChart/__mock__/data.ts +141 -0
  45. package/src/components/Charts/BarLineComplexChart/colorPalette.ts +23 -0
  46. package/src/components/Charts/BarLineComplexChart/index.ts +1 -0
  47. package/src/components/Charts/BarLineComplexChart/types.ts +36 -0
  48. package/src/components/Charts/BarLineComplexChart/useChartInfo.ts +68 -0
  49. package/src/components/{PieChart → Charts/PieChart}/types.ts +1 -1
  50. package/src/components/{SegmentedPieChart → Charts/SegmentedPieChart}/stories/SegmentedPieChart.stories.tsx +1 -1
  51. package/src/components/Charts/hooks/index.ts +1 -0
  52. package/src/components/Charts/hooks/usePlotlyDefaultConfig.ts +39 -0
  53. package/src/components/Charts/index.ts +3 -0
  54. package/src/components/Input/Input.tsx +8 -2
  55. package/src/components/Input/InputStatusError.tsx +6 -2
  56. package/src/components/Input/InputStatusSuccess.tsx +6 -2
  57. package/src/components/Input/types.ts +2 -0
  58. package/src/components/Pagination/Pagination.stories.tsx +12 -0
  59. package/src/components/Pagination/Pagination.tsx +9 -4
  60. package/src/components/Pagination/components/RowsPerPageDropdown/RowsPerPageDropdown.tsx +1 -1
  61. package/src/components/Pagination/styles.tsx +1 -2
  62. package/src/components/Pagination/types.ts +2 -0
  63. package/src/components/ProgressInfo/ProgressInfo.tsx +1 -1
  64. package/src/components/Tooltip/types.ts +5 -2
  65. package/src/components/Tooltip/useTooltip.tsx +4 -2
  66. package/src/components/WidgetCard/WidgetCard.tsx +5 -1
  67. package/src/components/WidgetCard/WidgetCardBase.tsx +4 -2
  68. package/src/components/WidgetCard/WithWidgetCard.tsx +1 -1
  69. package/src/components/WidgetCard/types.ts +2 -0
  70. package/src/components/index.ts +1 -2
  71. package/src/contexts/Translation/TranslationContext.tsx +53 -0
  72. package/src/contexts/Translation/config.ts +3 -0
  73. package/src/contexts/Translation/index.ts +2 -0
  74. package/src/contexts/Translation/types.ts +9 -0
  75. package/src/contexts/index.ts +1 -0
  76. package/src/index.ts +1 -0
  77. package/src/types/json.ts +7 -0
  78. package/tsbuildcache +1 -1
  79. package/tsconfig.build.json +2 -0
  80. package/tsconfig.json +2 -0
  81. package/webpack.config.js +1 -0
  82. /package/dist/components/{PieChart → Charts/PieChart}/PieChart.d.ts +0 -0
  83. /package/dist/components/{PieChart → Charts/PieChart}/PieChartBases.d.ts +0 -0
  84. /package/dist/components/{PieChart → Charts/PieChart}/PieChartHeader.d.ts +0 -0
  85. /package/dist/components/{PieChart → Charts/PieChart}/PieChartLegend.d.ts +0 -0
  86. /package/dist/components/{PieChart → Charts/PieChart}/PieChartLegendList.d.ts +0 -0
  87. /package/dist/components/{PieChart → Charts/PieChart}/PieChartLegendListItem.d.ts +0 -0
  88. /package/dist/components/{PieChart → Charts/PieChart}/colorPalettes.d.ts +0 -0
  89. /package/dist/components/{PieChart → Charts/PieChart}/index.d.ts +0 -0
  90. /package/dist/components/{PieChart → Charts/PieChart}/stories/fixtures.d.ts +0 -0
  91. /package/dist/components/{SegmentedPieChart → Charts/SegmentedPieChart}/SegmentedPieChart.d.ts +0 -0
  92. /package/dist/components/{SegmentedPieChart → Charts/SegmentedPieChart}/SegmentedPieChartContext.d.ts +0 -0
  93. /package/dist/components/{SegmentedPieChart → Charts/SegmentedPieChart}/colorPalettes.d.ts +0 -0
  94. /package/dist/components/{SegmentedPieChart → Charts/SegmentedPieChart}/components/ChartTitle.d.ts +0 -0
  95. /package/dist/components/{SegmentedPieChart → Charts/SegmentedPieChart}/components/ChartTooltip.d.ts +0 -0
  96. /package/dist/components/{SegmentedPieChart → Charts/SegmentedPieChart}/components/LegendItem.d.ts +0 -0
  97. /package/dist/components/{SegmentedPieChart → Charts/SegmentedPieChart}/components/index.d.ts +0 -0
  98. /package/dist/components/{SegmentedPieChart → Charts/SegmentedPieChart}/hooks/index.d.ts +0 -0
  99. /package/dist/components/{SegmentedPieChart → Charts/SegmentedPieChart}/hooks/useData.d.ts +0 -0
  100. /package/dist/components/{SegmentedPieChart → Charts/SegmentedPieChart}/index.d.ts +0 -0
  101. /package/dist/components/{SegmentedPieChart → Charts/SegmentedPieChart}/stories/fixtures.d.ts +0 -0
  102. /package/dist/components/{SegmentedPieChart → Charts/SegmentedPieChart}/utils.d.ts +0 -0
  103. /package/src/components/{PieChart → Charts/PieChart}/PieChart.spec.tsx +0 -0
  104. /package/src/components/{PieChart → Charts/PieChart}/PieChart.stories.tsx +0 -0
  105. /package/src/components/{PieChart → Charts/PieChart}/PieChart.tsx +0 -0
  106. /package/src/components/{PieChart → Charts/PieChart}/PieChartBases.tsx +0 -0
  107. /package/src/components/{PieChart → Charts/PieChart}/PieChartHeader.tsx +0 -0
  108. /package/src/components/{PieChart → Charts/PieChart}/PieChartLegend.tsx +0 -0
  109. /package/src/components/{PieChart → Charts/PieChart}/PieChartLegendList.tsx +0 -0
  110. /package/src/components/{PieChart → Charts/PieChart}/PieChartLegendListItem.tsx +0 -0
  111. /package/src/components/{PieChart → Charts/PieChart}/PieChartLegendMarker.tsx +0 -0
  112. /package/src/components/{PieChart → Charts/PieChart}/colorPalettes.ts +0 -0
  113. /package/src/components/{PieChart → Charts/PieChart}/index.ts +0 -0
  114. /package/src/components/{PieChart → Charts/PieChart}/stories/fixtures.ts +0 -0
  115. /package/src/components/{PieChart → Charts/PieChart}/styles.ts +0 -0
  116. /package/src/components/{SegmentedPieChart → Charts/SegmentedPieChart}/SegmentedPieChart.spec.tsx +0 -0
  117. /package/src/components/{SegmentedPieChart → Charts/SegmentedPieChart}/SegmentedPieChart.tsx +0 -0
  118. /package/src/components/{SegmentedPieChart → Charts/SegmentedPieChart}/SegmentedPieChartContext.tsx +0 -0
  119. /package/src/components/{SegmentedPieChart → Charts/SegmentedPieChart}/colorPalettes.ts +0 -0
  120. /package/src/components/{SegmentedPieChart → Charts/SegmentedPieChart}/components/ChartTitle.tsx +0 -0
  121. /package/src/components/{SegmentedPieChart → Charts/SegmentedPieChart}/components/ChartTooltip.tsx +0 -0
  122. /package/src/components/{SegmentedPieChart → Charts/SegmentedPieChart}/components/LegendItem.tsx +0 -0
  123. /package/src/components/{SegmentedPieChart → Charts/SegmentedPieChart}/components/index.ts +0 -0
  124. /package/src/components/{SegmentedPieChart → Charts/SegmentedPieChart}/hooks/index.ts +0 -0
  125. /package/src/components/{SegmentedPieChart → Charts/SegmentedPieChart}/hooks/useData.ts +0 -0
  126. /package/src/components/{SegmentedPieChart → Charts/SegmentedPieChart}/index.ts +0 -0
  127. /package/src/components/{SegmentedPieChart → Charts/SegmentedPieChart}/stories/fixtures.ts +0 -0
  128. /package/src/components/{SegmentedPieChart → Charts/SegmentedPieChart}/types.ts +0 -0
  129. /package/src/components/{SegmentedPieChart → Charts/SegmentedPieChart}/utils.ts +0 -0
@@ -0,0 +1,3 @@
1
+ import { BarLineComplexChartPContextProps, BarLineComplexChartPContextProviderProps } from './types';
2
+ export declare const useBarLineComplexChartContext: () => BarLineComplexChartPContextProps;
3
+ export declare const BarLineComplexChartContextProvider: ({ children, lineShape, maxVisibleBars, maxVisibleLines, data: initialData, }: BarLineComplexChartPContextProviderProps) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
@@ -0,0 +1,2 @@
1
+ import { BarLineComplexChartProps } from './types';
2
+ export declare const BarLineComplexChart: ({ data, lineShape, maxVisibleBars, maxVisibleLines, ...rest }: BarLineComplexChartProps) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
@@ -0,0 +1,2 @@
1
+ import { BarLineComplexChartProps } from './types';
2
+ export declare const BarLineComplexChartInternal: ({ width, height, ...props }: Omit<BarLineComplexChartProps, "data" | "lineShape" | "maxVisibleBars" | "maxVisibleLines" | "features" | "cardProps">) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
@@ -0,0 +1,2 @@
1
+ import { TooltipContentProps } from '../../Tooltip/types';
2
+ export declare const BarLineComplexChartTooltip: import("react").ForwardRefExoticComponent<Omit<TooltipContentProps, "children"> & import("react").RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,3 @@
1
+ import { ChartItem } from '../types';
2
+ export declare const mockData: ChartItem[];
3
+ export declare const mockDataWithDifferentLineType: ChartItem[];
@@ -0,0 +1 @@
1
+ export declare const colorPalette: string[];
@@ -0,0 +1 @@
1
+ export * from './BarLineComplexChart';
@@ -0,0 +1,28 @@
1
+ import { PlotParams } from 'react-plotly.js';
2
+ import { PieChartProps } from '../PieChart';
3
+ export type ChartItem = Plotly.Data & {
4
+ selected?: boolean;
5
+ };
6
+ export interface BarLineComplexChartProps extends Omit<PlotParams, 'layout'> {
7
+ layout?: PlotParams['layout'];
8
+ cardProps?: PieChartProps['cardProps'];
9
+ features?: Array<'header'>;
10
+ data: ChartItem[];
11
+ lineShape?: Plotly.ScatterLine['shape'];
12
+ width?: string;
13
+ height?: string;
14
+ maxVisibleBars?: number;
15
+ maxVisibleLines?: number;
16
+ }
17
+ export interface BarLineComplexChartPContextProps {
18
+ data: ChartItem[];
19
+ filteredData: ChartItem[];
20
+ lineShape?: Plotly.ScatterLine['shape'];
21
+ maxVisibleBars?: number;
22
+ maxVisibleLines?: number;
23
+ setFilteredData: React.Dispatch<React.SetStateAction<ChartItem[]>>;
24
+ setData: React.Dispatch<React.SetStateAction<ChartItem[]>>;
25
+ }
26
+ export interface BarLineComplexChartPContextProviderProps extends Pick<BarLineComplexChartProps, 'data' | 'lineShape' | 'maxVisibleBars' | 'maxVisibleLines'> {
27
+ children: React.ReactNode;
28
+ }
@@ -0,0 +1,10 @@
1
+ import { MutableRefObject } from 'react';
2
+ interface UseChartInfo {
3
+ (): {
4
+ transformedChartData: Plotly.Data[];
5
+ tooltipContentRef: MutableRefObject<HTMLDivElement | null>;
6
+ handleFilterClick: (gd: Plotly.PlotlyHTMLElement, ev: MouseEvent) => void;
7
+ };
8
+ }
9
+ export declare const useChartInfo: UseChartInfo;
10
+ export {};
@@ -1,4 +1,4 @@
1
- export declare const PieChartLegendMarker: import("@emotion/styled").StyledComponent<import("../Badge/types").BadgeProps & import("react").RefAttributes<HTMLDivElement> & {
1
+ export declare const PieChartLegendMarker: import("@emotion/styled").StyledComponent<import("../../Badge/types").BadgeProps & import("react").RefAttributes<HTMLDivElement> & {
2
2
  theme?: import("@emotion/react").Theme;
3
3
  } & {
4
4
  background?: string;
@@ -1,3 +1,3 @@
1
- export declare const PieChartButton: import("@emotion/styled").StyledComponent<import("../Button/types").ButtonProps & import("react").RefAttributes<HTMLButtonElement> & {
1
+ export declare const PieChartButton: import("@emotion/styled").StyledComponent<import("../../Button/types").ButtonProps & import("react").RefAttributes<HTMLButtonElement> & {
2
2
  theme?: import("@emotion/react").Theme;
3
3
  }, {}, {}>;
@@ -1,6 +1,6 @@
1
1
  import { SerializedStyles } from '@emotion/react';
2
2
  import { ResponsivePie, MayHaveLabel } from '@nivo/pie';
3
- import { CommonProps, WidgetCardProps } from '../..';
3
+ import { CommonProps, WidgetCardProps } from '../../..';
4
4
  export type PieChartFeatures = 'header' | 'fullscreenMode' | 'activeItemAnimation';
5
5
  export interface PieChartProps extends CommonProps, React.ComponentProps<typeof ResponsivePie> {
6
6
  title?: React.ReactNode;
@@ -1,6 +1,6 @@
1
- import { CommonProps } from '../../types/emotion';
2
- import { PieChartLegend, PieChartLegendItem, PieChartProps } from '../index';
3
- import { TooltipProps } from '../Tooltip/types';
1
+ import { CommonProps } from '../../../types/emotion';
2
+ import { PieChartLegend, PieChartLegendItem, PieChartProps } from '../../index';
3
+ import { TooltipProps } from '../../Tooltip/types';
4
4
  type SegmentedDataMainInfo = {
5
5
  label: string;
6
6
  value: number;
@@ -0,0 +1 @@
1
+ export * from './usePlotlyDefaultConfig';
@@ -0,0 +1,10 @@
1
+ import { PlotParams } from 'react-plotly.js';
2
+ interface UsePlotlyDefaultConfig {
3
+ (): {
4
+ layout: PlotParams['layout'];
5
+ config: PlotParams['config'];
6
+ emptyBar: PlotParams['data'][0];
7
+ };
8
+ }
9
+ export declare const usePlotlyDefaultConfig: UsePlotlyDefaultConfig;
10
+ export {};
@@ -0,0 +1,3 @@
1
+ export * from './PieChart';
2
+ export * from './SegmentedPieChart';
3
+ export * from './BarLineComplexChart';
@@ -2,4 +2,6 @@ export declare const InputError: import("@emotion/styled").StyledComponent<{
2
2
  theme?: import("@emotion/react").Theme;
3
3
  as?: React.ElementType;
4
4
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
5
- export declare const InputStatusError: () => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
5
+ export declare const InputStatusError: ({ errorTooltip, }: {
6
+ errorTooltip?: string;
7
+ }) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
@@ -2,4 +2,6 @@ export declare const InputSuccess: import("@emotion/styled").StyledComponent<{
2
2
  theme?: import("@emotion/react").Theme;
3
3
  as?: React.ElementType;
4
4
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
5
- export declare const InputStatusSuccess: () => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
5
+ export declare const InputStatusSuccess: ({ successTooltip, }: {
6
+ successTooltip?: string;
7
+ }) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
@@ -18,6 +18,8 @@ export interface InputProps extends Partial<Pick<UseFormReturn, 'register' | 'co
18
18
  endElement?: React.ReactElement;
19
19
  css?: Interpolation<Theme>;
20
20
  inputProps?: ExtendedInputProps;
21
+ errorTooltip?: string;
22
+ successTooltip?: string;
21
23
  onKeyUp?: KeyboardEventHandler<HTMLInputElement>;
22
24
  onStartElementClick?: (event: BaseSyntheticEvent) => void;
23
25
  onEndElementClick?: (event: BaseSyntheticEvent) => void;
@@ -1,3 +1,3 @@
1
1
  import { PaginationProps } from './types';
2
- declare const Pagination: ({ pagesCount, className, as, ariaLabel, isDisabled, pageNumberPlaceholder, isPageSettingVisible, isRowPerPageVisible, rowPerPageProps, manualPageNumberProps, }: PaginationProps) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
2
+ declare const Pagination: ({ pagesCount, className, as, ariaLabel, isDisabled, pageNumberPlaceholder, errorTooltip, isPageSettingVisible, isPageFromCountVisible, isRowPerPageVisible, rowPerPageProps, manualPageNumberProps, }: PaginationProps) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
3
3
  export default Pagination;
@@ -8,8 +8,10 @@ export interface PaginationProps extends CommonProps {
8
8
  pageNumberPlaceholder?: string;
9
9
  isPageSettingVisible?: boolean;
10
10
  isRowPerPageVisible?: boolean;
11
+ isPageFromCountVisible?: boolean;
11
12
  rowPerPageProps?: RowsPerPageDropdownProps;
12
13
  manualPageNumberProps?: InputProps;
14
+ errorTooltip?: string;
13
15
  }
14
16
  export interface PaginationButtonsProps {
15
17
  range: number[];
@@ -1,4 +1,4 @@
1
- import { useInteractions, FloatingArrow, Placement, UseFloatingReturn } from '@floating-ui/react';
1
+ import { useInteractions, FloatingArrow, Placement, UseFloatingReturn, OffsetOptions } from '@floating-ui/react';
2
2
  import { PointTooltipProps, Point } from '@nivo/line';
3
3
  import { MapIconsType } from '../Icon/types';
4
4
  import { ProgressBarProps } from '../ProgressBar/types';
@@ -10,7 +10,7 @@ export interface TooltipProps extends CommonProps {
10
10
  placement?: Placement;
11
11
  enableHover?: boolean;
12
12
  enableClick?: boolean;
13
- offsetPx?: number;
13
+ offsetOptions?: OffsetOptions;
14
14
  size?: TooltipSize;
15
15
  hasArrow?: boolean;
16
16
  arrowProps?: TooltipArrowProps;
@@ -24,10 +24,12 @@ interface MutableRefObject<T> {
24
24
  export type UseTooltip = (props: UseTooltipArgs) => Pick<TooltipProps, 'size' | 'hasArrow' | 'arrowProps'> & {
25
25
  arrowRef: MutableRefObject<null>;
26
26
  isOpen: boolean;
27
+ setIsOpen: (isOpen: boolean) => void;
27
28
  } & UseFloatingReturn & UseInteractions;
28
29
  export type TooltipContextType = (UseFloatingReturn & ReturnType<typeof useInteractions> & {
29
- isOpen: boolean;
30
30
  arrowRef: React.Ref<SVGSVGElement>;
31
+ isOpen: boolean;
32
+ setIsOpen: (isOpen: boolean) => void;
31
33
  } & Pick<TooltipProps, 'size' | 'hasArrow' | 'arrowProps'>) | null;
32
34
  export type TooltipArrowProps = Omit<React.ComponentProps<typeof FloatingArrow>, 'context'>;
33
35
  export interface TooltipContentProps {
@@ -1,2 +1,2 @@
1
1
  import { WidgetCardProps } from './types';
2
- export declare const WidgetCard: ({ title, className, wrapperClassName, contentClassName, headerClassName, headerContent, link, children, onClick, }: WidgetCardProps) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
2
+ export declare const WidgetCard: ({ title, className, wrapperClassName, contentClassName, headerClassName, headerContent, link, children, width, height, onClick, }: WidgetCardProps) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
@@ -2,4 +2,6 @@ export declare const WidgetCardBase: import("@emotion/styled").StyledComponent<i
2
2
  theme?: import("@emotion/react").Theme;
3
3
  } & {
4
4
  isFullscreenMode?: boolean;
5
+ width?: string;
6
+ height?: string;
5
7
  }, {}, {}>;
@@ -1,4 +1,4 @@
1
- import { PieChartProps } from '../PieChart';
1
+ import { PieChartProps } from '../Charts/PieChart';
2
2
  export declare const WithWidgetCard: ({ children, features, cardProps, }: {
3
3
  children: React.ReactNode;
4
4
  } & Pick<PieChartProps, "features" | "cardProps">) => string | number | boolean | import("react").ReactFragment | import("@emotion/react/types/jsx-namespace").EmotionJSX.Element | null | undefined;
@@ -8,5 +8,7 @@ export type WidgetCardProps = {
8
8
  headerContent?: React.ReactNode;
9
9
  link?: To;
10
10
  children?: React.ReactNode;
11
+ width?: string;
12
+ height?: string;
11
13
  onClick?: () => void;
12
14
  };
@@ -82,12 +82,11 @@ export * from './NavBar';
82
82
  export * from './NotificationCard';
83
83
  export * from './NotificationMenu';
84
84
  export * from './Pagination';
85
- export * from './PieChart';
85
+ export * from './Charts';
86
86
  export * from './Popover';
87
87
  export * from './ProgressInfo';
88
88
  export * from './ResponsiveImage';
89
89
  export * from './SearchBox';
90
- export * from './SegmentedPieChart';
91
90
  export * from './Switch';
92
91
  export * from './TabBar';
93
92
  export * from './TableFilters';
@@ -0,0 +1,9 @@
1
+ import { ReactNode } from 'react';
2
+ import { JSONObject } from '../../types/json';
3
+ import { TranslationContextContent } from './types';
4
+ export declare const TranslationContext: import("react").Context<TranslationContextContent>;
5
+ export declare const TranslationProvider: ({ children, defaultTranslations, }: {
6
+ children: ReactNode;
7
+ defaultTranslations?: JSONObject;
8
+ }) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
9
+ export declare const useTranslation: () => TranslationContextContent;
@@ -0,0 +1,3 @@
1
+ export declare const config: {
2
+ defaultLanguage: string;
3
+ };
@@ -0,0 +1,2 @@
1
+ export * from './TranslationContext';
2
+ export * from './types';
@@ -0,0 +1,8 @@
1
+ import { Dispatch, SetStateAction } from 'react';
2
+ import { JSONObject } from '../../types/json';
3
+ export type TranslationContextContent = {
4
+ language: string;
5
+ t: (translationKey: string) => string;
6
+ setLanguage: Dispatch<SetStateAction<string>>;
7
+ setTranslations: Dispatch<SetStateAction<JSONObject>>;
8
+ };
@@ -0,0 +1 @@
1
+ export * from './Translation';
package/dist/index.d.ts CHANGED
@@ -7,3 +7,4 @@ export { default as mainTheme } from './themes/main';
7
7
  export * as globalStyles from './styles/global';
8
8
  export * as styleUtils from './styles/safari-focus-outline';
9
9
  export * from './components';
10
+ export * from './contexts';