@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.
- package/dist/components/Charts/BarLineComplexChart/BarLIneComplexChart.context.d.ts +3 -0
- package/dist/components/Charts/BarLineComplexChart/BarLineComplexChart.d.ts +2 -0
- package/dist/components/Charts/BarLineComplexChart/BarLineComplexChartInternal.d.ts +2 -0
- package/dist/components/Charts/BarLineComplexChart/BarLineComplexChartTooltip.d.ts +2 -0
- package/dist/components/Charts/BarLineComplexChart/__mock__/data.d.ts +3 -0
- package/dist/components/Charts/BarLineComplexChart/colorPalette.d.ts +1 -0
- package/dist/components/Charts/BarLineComplexChart/index.d.ts +1 -0
- package/dist/components/Charts/BarLineComplexChart/types.d.ts +28 -0
- package/dist/components/Charts/BarLineComplexChart/useChartInfo.d.ts +10 -0
- package/dist/components/{PieChart → Charts/PieChart}/PieChartLegendMarker.d.ts +1 -1
- package/dist/components/{PieChart → Charts/PieChart}/styles.d.ts +1 -1
- package/dist/components/{PieChart → Charts/PieChart}/types.d.ts +1 -1
- package/dist/components/{SegmentedPieChart → Charts/SegmentedPieChart}/types.d.ts +3 -3
- package/dist/components/Charts/hooks/index.d.ts +1 -0
- package/dist/components/Charts/hooks/usePlotlyDefaultConfig.d.ts +10 -0
- package/dist/components/Charts/index.d.ts +3 -0
- package/dist/components/Input/InputStatusError.d.ts +3 -1
- package/dist/components/Input/InputStatusSuccess.d.ts +3 -1
- package/dist/components/Input/types.d.ts +2 -0
- package/dist/components/Pagination/Pagination.d.ts +1 -1
- package/dist/components/Pagination/types.d.ts +2 -0
- package/dist/components/Tooltip/types.d.ts +5 -3
- package/dist/components/WidgetCard/WidgetCard.d.ts +1 -1
- package/dist/components/WidgetCard/WidgetCardBase.d.ts +2 -0
- package/dist/components/WidgetCard/WithWidgetCard.d.ts +1 -1
- package/dist/components/WidgetCard/types.d.ts +2 -0
- package/dist/components/index.d.ts +1 -2
- package/dist/contexts/Translation/TranslationContext.d.ts +9 -0
- package/dist/contexts/Translation/config.d.ts +3 -0
- package/dist/contexts/Translation/index.d.ts +2 -0
- package/dist/contexts/Translation/types.d.ts +8 -0
- package/dist/contexts/index.d.ts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/types/json.d.ts +5 -0
- package/jest-setup.ts +3 -0
- package/package.json +5 -2
- package/src/components/Charts/BarLineComplexChart/BarLIneComplexChart.context.tsx +54 -0
- package/src/components/Charts/BarLineComplexChart/BarLineComplexChart.stories.tsx +47 -0
- package/src/components/Charts/BarLineComplexChart/BarLineComplexChart.tsx +26 -0
- package/src/components/Charts/BarLineComplexChart/BarLineComplexChartInternal.tsx +135 -0
- package/src/components/Charts/BarLineComplexChart/BarLineComplexChartTooltip.tsx +43 -0
- package/src/components/Charts/BarLineComplexChart/__mock__/data.ts +141 -0
- package/src/components/Charts/BarLineComplexChart/colorPalette.ts +23 -0
- package/src/components/Charts/BarLineComplexChart/index.ts +1 -0
- package/src/components/Charts/BarLineComplexChart/types.ts +36 -0
- package/src/components/Charts/BarLineComplexChart/useChartInfo.ts +68 -0
- package/src/components/{PieChart → Charts/PieChart}/types.ts +1 -1
- package/src/components/{SegmentedPieChart → Charts/SegmentedPieChart}/stories/SegmentedPieChart.stories.tsx +1 -1
- package/src/components/Charts/hooks/index.ts +1 -0
- package/src/components/Charts/hooks/usePlotlyDefaultConfig.ts +39 -0
- package/src/components/Charts/index.ts +3 -0
- package/src/components/Input/Input.tsx +8 -2
- package/src/components/Input/InputStatusError.tsx +6 -2
- package/src/components/Input/InputStatusSuccess.tsx +6 -2
- package/src/components/Input/types.ts +2 -0
- package/src/components/Pagination/Pagination.stories.tsx +12 -0
- package/src/components/Pagination/Pagination.tsx +9 -4
- package/src/components/Pagination/components/RowsPerPageDropdown/RowsPerPageDropdown.tsx +1 -1
- package/src/components/Pagination/styles.tsx +1 -2
- package/src/components/Pagination/types.ts +2 -0
- package/src/components/ProgressInfo/ProgressInfo.tsx +1 -1
- package/src/components/Tooltip/types.ts +5 -2
- package/src/components/Tooltip/useTooltip.tsx +4 -2
- package/src/components/WidgetCard/WidgetCard.tsx +5 -1
- package/src/components/WidgetCard/WidgetCardBase.tsx +4 -2
- package/src/components/WidgetCard/WithWidgetCard.tsx +1 -1
- package/src/components/WidgetCard/types.ts +2 -0
- package/src/components/index.ts +1 -2
- package/src/contexts/Translation/TranslationContext.tsx +53 -0
- package/src/contexts/Translation/config.ts +3 -0
- package/src/contexts/Translation/index.ts +2 -0
- package/src/contexts/Translation/types.ts +9 -0
- package/src/contexts/index.ts +1 -0
- package/src/index.ts +1 -0
- package/src/types/json.ts +7 -0
- package/tsbuildcache +1 -1
- package/tsconfig.build.json +2 -0
- package/tsconfig.json +2 -0
- package/webpack.config.js +1 -0
- /package/dist/components/{PieChart → Charts/PieChart}/PieChart.d.ts +0 -0
- /package/dist/components/{PieChart → Charts/PieChart}/PieChartBases.d.ts +0 -0
- /package/dist/components/{PieChart → Charts/PieChart}/PieChartHeader.d.ts +0 -0
- /package/dist/components/{PieChart → Charts/PieChart}/PieChartLegend.d.ts +0 -0
- /package/dist/components/{PieChart → Charts/PieChart}/PieChartLegendList.d.ts +0 -0
- /package/dist/components/{PieChart → Charts/PieChart}/PieChartLegendListItem.d.ts +0 -0
- /package/dist/components/{PieChart → Charts/PieChart}/colorPalettes.d.ts +0 -0
- /package/dist/components/{PieChart → Charts/PieChart}/index.d.ts +0 -0
- /package/dist/components/{PieChart → Charts/PieChart}/stories/fixtures.d.ts +0 -0
- /package/dist/components/{SegmentedPieChart → Charts/SegmentedPieChart}/SegmentedPieChart.d.ts +0 -0
- /package/dist/components/{SegmentedPieChart → Charts/SegmentedPieChart}/SegmentedPieChartContext.d.ts +0 -0
- /package/dist/components/{SegmentedPieChart → Charts/SegmentedPieChart}/colorPalettes.d.ts +0 -0
- /package/dist/components/{SegmentedPieChart → Charts/SegmentedPieChart}/components/ChartTitle.d.ts +0 -0
- /package/dist/components/{SegmentedPieChart → Charts/SegmentedPieChart}/components/ChartTooltip.d.ts +0 -0
- /package/dist/components/{SegmentedPieChart → Charts/SegmentedPieChart}/components/LegendItem.d.ts +0 -0
- /package/dist/components/{SegmentedPieChart → Charts/SegmentedPieChart}/components/index.d.ts +0 -0
- /package/dist/components/{SegmentedPieChart → Charts/SegmentedPieChart}/hooks/index.d.ts +0 -0
- /package/dist/components/{SegmentedPieChart → Charts/SegmentedPieChart}/hooks/useData.d.ts +0 -0
- /package/dist/components/{SegmentedPieChart → Charts/SegmentedPieChart}/index.d.ts +0 -0
- /package/dist/components/{SegmentedPieChart → Charts/SegmentedPieChart}/stories/fixtures.d.ts +0 -0
- /package/dist/components/{SegmentedPieChart → Charts/SegmentedPieChart}/utils.d.ts +0 -0
- /package/src/components/{PieChart → Charts/PieChart}/PieChart.spec.tsx +0 -0
- /package/src/components/{PieChart → Charts/PieChart}/PieChart.stories.tsx +0 -0
- /package/src/components/{PieChart → Charts/PieChart}/PieChart.tsx +0 -0
- /package/src/components/{PieChart → Charts/PieChart}/PieChartBases.tsx +0 -0
- /package/src/components/{PieChart → Charts/PieChart}/PieChartHeader.tsx +0 -0
- /package/src/components/{PieChart → Charts/PieChart}/PieChartLegend.tsx +0 -0
- /package/src/components/{PieChart → Charts/PieChart}/PieChartLegendList.tsx +0 -0
- /package/src/components/{PieChart → Charts/PieChart}/PieChartLegendListItem.tsx +0 -0
- /package/src/components/{PieChart → Charts/PieChart}/PieChartLegendMarker.tsx +0 -0
- /package/src/components/{PieChart → Charts/PieChart}/colorPalettes.ts +0 -0
- /package/src/components/{PieChart → Charts/PieChart}/index.ts +0 -0
- /package/src/components/{PieChart → Charts/PieChart}/stories/fixtures.ts +0 -0
- /package/src/components/{PieChart → Charts/PieChart}/styles.ts +0 -0
- /package/src/components/{SegmentedPieChart → Charts/SegmentedPieChart}/SegmentedPieChart.spec.tsx +0 -0
- /package/src/components/{SegmentedPieChart → Charts/SegmentedPieChart}/SegmentedPieChart.tsx +0 -0
- /package/src/components/{SegmentedPieChart → Charts/SegmentedPieChart}/SegmentedPieChartContext.tsx +0 -0
- /package/src/components/{SegmentedPieChart → Charts/SegmentedPieChart}/colorPalettes.ts +0 -0
- /package/src/components/{SegmentedPieChart → Charts/SegmentedPieChart}/components/ChartTitle.tsx +0 -0
- /package/src/components/{SegmentedPieChart → Charts/SegmentedPieChart}/components/ChartTooltip.tsx +0 -0
- /package/src/components/{SegmentedPieChart → Charts/SegmentedPieChart}/components/LegendItem.tsx +0 -0
- /package/src/components/{SegmentedPieChart → Charts/SegmentedPieChart}/components/index.ts +0 -0
- /package/src/components/{SegmentedPieChart → Charts/SegmentedPieChart}/hooks/index.ts +0 -0
- /package/src/components/{SegmentedPieChart → Charts/SegmentedPieChart}/hooks/useData.ts +0 -0
- /package/src/components/{SegmentedPieChart → Charts/SegmentedPieChart}/index.ts +0 -0
- /package/src/components/{SegmentedPieChart → Charts/SegmentedPieChart}/stories/fixtures.ts +0 -0
- /package/src/components/{SegmentedPieChart → Charts/SegmentedPieChart}/types.ts +0 -0
- /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 BarLineComplexChartInternal: ({ width, height, ...props }: Omit<BarLineComplexChartProps, "data" | "lineShape" | "maxVisibleBars" | "maxVisibleLines" | "features" | "cardProps">) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
@@ -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("
|
|
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("
|
|
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 '
|
|
2
|
-
import { PieChartLegend, PieChartLegendItem, PieChartProps } from '
|
|
3
|
-
import { TooltipProps } from '
|
|
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 {};
|
|
@@ -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: (
|
|
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: (
|
|
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
|
-
|
|
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;
|
|
@@ -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;
|
|
@@ -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 './
|
|
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,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