@ssa-ui-kit/core 2.13.0 → 2.14.0
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/RadarChart/RadarChart.d.ts +17 -0
- package/dist/components/Charts/RadarChart/components/RadarChartHeader.d.ts +8 -0
- package/dist/components/Charts/RadarChart/components/RadarChartTooltip.d.ts +5 -0
- package/dist/components/Charts/RadarChart/components/index.d.ts +2 -0
- package/dist/components/Charts/RadarChart/index.d.ts +1 -0
- package/dist/components/Tooltip/types.d.ts +1 -0
- package/dist/components/TooltipTrigger/TooltipTrigger.d.ts +1 -1
- package/dist/index.js +5 -3
- package/dist/index.js.map +1 -1
- package/package.json +5 -3
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ComponentProps } from 'react';
|
|
2
|
+
import { ResponsiveRadar } from '@nivo/radar';
|
|
3
|
+
import { WidgetCardProps } from '../../WidgetCard';
|
|
4
|
+
export type RadarChartFeatures = 'header' | 'fullscreenMode';
|
|
5
|
+
type ResponsiveRadarProps<D extends Record<string, unknown>> = ComponentProps<typeof ResponsiveRadar<D>>;
|
|
6
|
+
export interface RadarChartProps<D extends Record<string, unknown>> extends Omit<ResponsiveRadarProps<D>, 'legends'> {
|
|
7
|
+
title?: string;
|
|
8
|
+
legends?: Partial<NonNullable<ResponsiveRadarProps<D>['legends']>[number]>[];
|
|
9
|
+
features?: RadarChartFeatures[];
|
|
10
|
+
widgetCardProps?: WidgetCardProps;
|
|
11
|
+
}
|
|
12
|
+
export declare const RadarChartComponent: <D extends Record<string, unknown>>({ title, widgetCardProps, features, ...radarProps }: RadarChartProps<D>) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
13
|
+
export declare const RadarChart: {
|
|
14
|
+
(props: RadarChartProps<Record<string, unknown>>): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
15
|
+
displayName: string;
|
|
16
|
+
};
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { MustInclude } from '@ssa-ui-kit/utils';
|
|
2
|
+
export declare const FullScreenButton: import("@emotion/styled").StyledComponent<import("../../../Button/types").ButtonProps & import("react").RefAttributes<HTMLButtonElement> & {
|
|
3
|
+
theme?: import("@emotion/react").Theme;
|
|
4
|
+
}, {}, {}>;
|
|
5
|
+
export interface RadarChartHeaderProps<T extends string[]> {
|
|
6
|
+
features: MustInclude<T, 'fullscreenMode'>;
|
|
7
|
+
}
|
|
8
|
+
export declare const RadarChartHeader: <F extends string[]>({ features, }: RadarChartHeaderProps<F>) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { RadarSliceTooltipProps } from '@nivo/radar';
|
|
2
|
+
export interface RadarChartTooltipProps extends RadarSliceTooltipProps {
|
|
3
|
+
symbolSize?: number;
|
|
4
|
+
}
|
|
5
|
+
export declare const RadarChartTooltip: ({ data, symbolSize, }: RadarChartTooltipProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './RadarChart';
|
|
@@ -44,6 +44,7 @@ export interface TooltipContentSizes {
|
|
|
44
44
|
}
|
|
45
45
|
export interface TooltipTriggerProps {
|
|
46
46
|
children: React.ReactNode;
|
|
47
|
+
className?: string;
|
|
47
48
|
}
|
|
48
49
|
export type SimpleChartTooltipProps = PointTooltipProps & Pick<TooltipProps, 'size'> & {
|
|
49
50
|
renderValue?: (data: Point['data']) => React.ReactNode;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { TooltipTriggerProps } from '../Tooltip/types';
|
|
2
|
-
declare const TooltipTrigger: ({ children }: TooltipTriggerProps) => import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | null;
|
|
2
|
+
declare const TooltipTrigger: ({ children, className }: TooltipTriggerProps) => import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | null;
|
|
3
3
|
export default TooltipTrigger;
|
package/dist/index.js
CHANGED
|
@@ -7839,12 +7839,14 @@ const TooltipContent = /*#__PURE__*/(0,external_react_namespaceObject.forwardRef
|
|
|
7839
7839
|
|
|
7840
7840
|
|
|
7841
7841
|
const TooltipTrigger = ({
|
|
7842
|
-
children
|
|
7842
|
+
children,
|
|
7843
|
+
className
|
|
7843
7844
|
}) => {
|
|
7844
7845
|
const tooltipCtx = useTooltipContext();
|
|
7845
7846
|
if (/*#__PURE__*/(0,external_react_namespaceObject.isValidElement)(children)) {
|
|
7846
7847
|
return /*#__PURE__*/(0,external_react_namespaceObject.cloneElement)(children, tooltipCtx?.getReferenceProps({
|
|
7847
|
-
ref: tooltipCtx.refs.setReference
|
|
7848
|
+
ref: tooltipCtx.refs.setReference,
|
|
7849
|
+
className: [children.props?.className, className].filter(Boolean).join(' ')
|
|
7848
7850
|
}));
|
|
7849
7851
|
}
|
|
7850
7852
|
return null;
|
|
@@ -8808,7 +8810,7 @@ const CollapsibleNavBarPopover = ({
|
|
|
8808
8810
|
[theme.mediaQueries.md]: {
|
|
8809
8811
|
display: 'block'
|
|
8810
8812
|
},
|
|
8811
|
-
zIndex:
|
|
8813
|
+
zIndex: 20
|
|
8812
8814
|
}, true ? "" : 0, true ? "" : 0),
|
|
8813
8815
|
isFocusManagerDisabled: true,
|
|
8814
8816
|
children: [(0,jsx_runtime_namespaceObject.jsx)(PopoverHeading, {
|