@ssa-ui-kit/core 2.22.0 → 2.23.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/AccordionGroup/stories/helpers.d.ts +1 -1
- package/dist/components/Charts/BarGaugeChart/BarGaugeChart.d.ts +2 -5
- package/dist/components/Charts/BarGaugeChart/types.d.ts +2 -0
- package/dist/components/Charts/BarLineComplexChart/BarLineComplexChart.d.ts +3 -4
- package/dist/components/Charts/BigNumberChart/BigNumberChart.d.ts +1 -4
- package/dist/components/Charts/CandlestickChart/CandlestickChart.d.ts +1 -4
- package/dist/components/Charts/GaugeChart/GaugeChart.d.ts +4 -4
- package/dist/components/Charts/PieChart/PieChart.d.ts +1 -4
- package/dist/components/Charts/RadarChart/RadarChart.d.ts +1 -4
- package/dist/components/Charts/SegmentedPieChart/SegmentedPieChart.d.ts +1 -4
- package/dist/components/Charts/TreeMapChart/TreeMapChart.d.ts +1 -4
- package/dist/components/ProgressBar/ProgressBar.d.ts +1 -1
- package/dist/components/TabBar/stories/helpers.d.ts +1 -1
- package/dist/components/Table/stories/{NoControlOrders → StyledTable}/components/TableList.d.ts +1 -1
- package/dist/components/Table/stories/StyledTable/components/index.d.ts +1 -0
- package/dist/components/Tooltip/types.d.ts +1 -0
- package/dist/index.js +14 -4
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/dist/components/Table/stories/NoControlOrders/StoryComponent.d.ts +0 -1
- package/dist/components/Table/stories/NoControlOrders/components/ActionMore.d.ts +0 -4
- package/dist/components/Table/stories/NoControlOrders/components/Reason.d.ts +0 -3
- package/dist/components/Table/stories/NoControlOrders/components/TableRow.d.ts +0 -2
- package/dist/components/Table/stories/NoControlOrders/components/index.d.ts +0 -4
- package/dist/components/Table/stories/NoControlOrders/mockData.d.ts +0 -14
- package/dist/components/Table/stories/NoControlOrders/types.d.ts +0 -15
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Decorator } from '@storybook/react';
|
|
1
|
+
import { Decorator } from '@storybook/react-webpack5';
|
|
2
2
|
import { AccordionGroupProps } from '../types';
|
|
3
3
|
export declare const AccordionGroupDecorator: Decorator;
|
|
4
4
|
export declare const AccordionTemplate: (args: Pick<AccordionGroupProps, "size" | "accordionsStayOpen">) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,3 @@
|
|
|
1
1
|
import { BarGaugeChartProps } from './types';
|
|
2
|
-
export declare const BarGaugeChartComponent: ({ title, widgetCardProps, bars, features, }: BarGaugeChartProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
3
|
-
export declare const BarGaugeChart:
|
|
4
|
-
(props: BarGaugeChartProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
5
|
-
displayName: string;
|
|
6
|
-
};
|
|
2
|
+
export declare const BarGaugeChartComponent: ({ title, widgetCardProps, wrapperProps, bars, features, }: BarGaugeChartProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare const BarGaugeChart: typeof BarGaugeChartComponent;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { MustInclude } from '@ssa-ui-kit/utils';
|
|
2
2
|
import { WidgetCardProps } from '../../WidgetCard';
|
|
3
|
+
import Wrapper from '../../Wrapper';
|
|
3
4
|
export type BarGaugeChartFeature = 'header' | 'fullscreenMode';
|
|
4
5
|
export type GaugeBarThreshold = {
|
|
5
6
|
value: number;
|
|
@@ -24,4 +25,5 @@ export interface BarGaugeChartProps {
|
|
|
24
25
|
widgetCardProps?: WidgetCardProps;
|
|
25
26
|
bars?: GaugeBarProps[];
|
|
26
27
|
features?: BarGaugeChartFeature[];
|
|
28
|
+
wrapperProps?: React.ComponentProps<typeof Wrapper>;
|
|
27
29
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { BarLineComplexChartProps } from './types';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
};
|
|
2
|
+
declare const BarLineComplexChartComponent: ({ data, lineShape, maxVisibleBars, maxVisibleLines, title, cardProps, features, isFullscreenModeInitial, onFullscreenModeChange, ...rest }: BarLineComplexChartProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare const BarLineComplexChart: typeof BarLineComplexChartComponent;
|
|
4
|
+
export {};
|
|
@@ -12,7 +12,4 @@ export interface BigNumberChartProps {
|
|
|
12
12
|
valueFormat?: (value: Datum) => React.ReactNode;
|
|
13
13
|
}
|
|
14
14
|
export declare const BigNumberChartComponent: ({ data, title, widgetCardProps, trendLineProps, interactive, features, valueFormat, }: BigNumberChartProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
15
|
-
export declare const BigNumberChart:
|
|
16
|
-
(props: BigNumberChartProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
17
|
-
displayName: string;
|
|
18
|
-
};
|
|
15
|
+
export declare const BigNumberChart: typeof BigNumberChartComponent;
|
|
@@ -10,7 +10,4 @@ export interface CandlestickChartProps extends Partial<Omit<PlotParams, 'data' |
|
|
|
10
10
|
widgetCardProps?: WidgetCardProps;
|
|
11
11
|
}
|
|
12
12
|
export declare const CandlestickChartComponent: ({ title, data, features, widgetCardProps, style, ...plotParams }: CandlestickChartProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
13
|
-
export declare const CandlestickChart:
|
|
14
|
-
(props: CandlestickChartProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
15
|
-
displayName: string;
|
|
16
|
-
};
|
|
13
|
+
export declare const CandlestickChart: typeof CandlestickChartComponent;
|
|
@@ -18,8 +18,8 @@ export interface GaugeChartProps extends Pick<GaugeChartLabelsProps, 'maxLabel'
|
|
|
18
18
|
trackProps?: Omit<GaugeChartBaseProps, 'data'>;
|
|
19
19
|
features?: GaugeChartFeature[];
|
|
20
20
|
widgetCardProps?: WidgetCardProps;
|
|
21
|
+
containerProps?: React.HTMLAttributes<HTMLDivElement>;
|
|
21
22
|
}
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
};
|
|
23
|
+
declare const GaugeChartComponent: ({ minLabel, maxLabel, totalLabel, unitLabel, minValue, maxValue, value, title, chartProps, trackProps, widgetCardProps, containerProps, withLabels, withTrack, withNeedle, features, segments, ticks, }: GaugeChartProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
24
|
+
export declare const GaugeChart: typeof GaugeChartComponent;
|
|
25
|
+
export {};
|
|
@@ -1,6 +1,3 @@
|
|
|
1
1
|
import { PieChartProps } from './types';
|
|
2
2
|
export declare const PieChartComponent: (props: PieChartProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
3
|
-
export declare const PieChart:
|
|
4
|
-
(props: PieChartProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
5
|
-
displayName: string;
|
|
6
|
-
};
|
|
3
|
+
export declare const PieChart: typeof PieChartComponent;
|
|
@@ -10,8 +10,5 @@ export interface RadarChartProps<D extends Record<string, unknown>> extends Omit
|
|
|
10
10
|
widgetCardProps?: WidgetCardProps;
|
|
11
11
|
}
|
|
12
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
|
-
};
|
|
13
|
+
export declare const RadarChart: typeof RadarChartComponent;
|
|
17
14
|
export {};
|
|
@@ -1,6 +1,3 @@
|
|
|
1
1
|
import { SegmentedPieChartProps } from './types';
|
|
2
2
|
export declare const SegmentedPieChartComponent: ({ data, pieChartProps, pieChartLegendProps, legendBackgrounds, pieChartColors, currency, otherLabel, totalAmount, totalDimension, legendValueRoundingDigits, legendPercentageRoundingDigits, showDimensions, showPercentage, titleTooltipOptions, tooltipConfig, renderTitleTooltipContent, }: SegmentedPieChartProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
3
|
-
export declare const SegmentedPieChart:
|
|
4
|
-
(props: SegmentedPieChartProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
5
|
-
displayName: string;
|
|
6
|
-
};
|
|
3
|
+
export declare const SegmentedPieChart: typeof SegmentedPieChartComponent;
|
|
@@ -16,8 +16,5 @@ export interface TreeMapChartProps extends Omit<NivoTreeMapChartProps, 'data'> {
|
|
|
16
16
|
widgetCardProps?: WidgetCardProps;
|
|
17
17
|
}
|
|
18
18
|
export declare const TreeMapChartComponent: ({ data, title, widgetCardProps, features, ...treeMapProps }: TreeMapChartProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
19
|
-
export declare const TreeMapChart:
|
|
20
|
-
(props: TreeMapChartProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
21
|
-
displayName: string;
|
|
22
|
-
};
|
|
19
|
+
export declare const TreeMapChart: typeof TreeMapChartComponent;
|
|
23
20
|
export {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ProgressBarProps } from './types';
|
|
2
|
-
export declare const ProgressBar: (
|
|
2
|
+
export declare const ProgressBar: import("react").ForwardRefExoticComponent<ProgressBarProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
3
3
|
export default ProgressBar;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Decorator } from '@storybook/react';
|
|
2
|
+
import { Decorator } from '@storybook/react-webpack5';
|
|
3
3
|
import { TabProps } from '../types';
|
|
4
4
|
export declare const TabBarWrapper: ({ children, selectedTabId, renderContent, }: {
|
|
5
5
|
children: React.ReactNode;
|
package/dist/components/Table/stories/{NoControlOrders → StyledTable}/components/TableList.d.ts
RENAMED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { StyledTableProps } from '
|
|
1
|
+
import { StyledTableProps } from '../types';
|
|
2
2
|
export declare const TableList: ({ children, ...rest }: StyledTableProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
package/dist/index.js
CHANGED
|
@@ -6274,6 +6274,7 @@ const bar = () => ProgressBar_styles_ref;
|
|
|
6274
6274
|
|
|
6275
6275
|
|
|
6276
6276
|
|
|
6277
|
+
|
|
6277
6278
|
const ProgressBar_mapColors = {
|
|
6278
6279
|
pink: pink,
|
|
6279
6280
|
yellow: yellow,
|
|
@@ -6284,13 +6285,13 @@ const ProgressBar_mapColors = {
|
|
|
6284
6285
|
blueLight: blueLight,
|
|
6285
6286
|
yellowWarm: yellowWarm
|
|
6286
6287
|
};
|
|
6287
|
-
const ProgressBar = ({
|
|
6288
|
+
const ProgressBar = /*#__PURE__*/(0,external_react_namespaceObject.forwardRef)(function ProgressBar({
|
|
6288
6289
|
percentage,
|
|
6289
6290
|
color = 'green',
|
|
6290
6291
|
vertical = false,
|
|
6291
6292
|
bgColor = 'rgba(238, 241, 247, 1)',
|
|
6292
6293
|
size = 12
|
|
6293
|
-
})
|
|
6294
|
+
}, ref) {
|
|
6294
6295
|
const mapBarWrapper = {
|
|
6295
6296
|
horizontal: {
|
|
6296
6297
|
height: size,
|
|
@@ -6312,6 +6313,7 @@ const ProgressBar = ({
|
|
|
6312
6313
|
}
|
|
6313
6314
|
};
|
|
6314
6315
|
return (0,jsx_runtime_namespaceObject.jsx)("div", {
|
|
6316
|
+
ref: ref,
|
|
6315
6317
|
css: [wrapper, {
|
|
6316
6318
|
backgroundColor: bgColor
|
|
6317
6319
|
}, true ? "" : 0, true ? "" : 0],
|
|
@@ -6324,7 +6326,7 @@ const ProgressBar = ({
|
|
|
6324
6326
|
style: mapBarContainer[vertical ? 'vertical' : 'horizontal']
|
|
6325
6327
|
})
|
|
6326
6328
|
});
|
|
6327
|
-
};
|
|
6329
|
+
});
|
|
6328
6330
|
/* harmony default export */ const ProgressBar_ProgressBar = (ProgressBar);
|
|
6329
6331
|
;// ./src/components/ProgressCircle/ProgressCircleBase.tsx
|
|
6330
6332
|
|
|
@@ -8190,6 +8192,7 @@ const useTooltip = props => {
|
|
|
8190
8192
|
placement,
|
|
8191
8193
|
enableClick = true,
|
|
8192
8194
|
enableHover = false,
|
|
8195
|
+
enableClientPoint = false,
|
|
8193
8196
|
offsetOptions = 12,
|
|
8194
8197
|
size = 'small',
|
|
8195
8198
|
hasArrow = true,
|
|
@@ -8219,7 +8222,10 @@ const useTooltip = props => {
|
|
|
8219
8222
|
});
|
|
8220
8223
|
const dismiss = (0,external_floating_ui_react_namespaceObject.useDismiss)(context);
|
|
8221
8224
|
const role = (0,external_floating_ui_react_namespaceObject.useRole)(context);
|
|
8222
|
-
const
|
|
8225
|
+
const clientPoint = (0,external_floating_ui_react_namespaceObject.useClientPoint)(context, {
|
|
8226
|
+
enabled: enableClientPoint
|
|
8227
|
+
});
|
|
8228
|
+
const interactionsData = (0,external_floating_ui_react_namespaceObject.useInteractions)([hover, click, dismiss, role, clientPoint]);
|
|
8223
8229
|
return (0,external_react_namespaceObject.useMemo)(() => ({
|
|
8224
8230
|
isOpen,
|
|
8225
8231
|
setIsOpen,
|
|
@@ -10406,6 +10412,7 @@ const GaugeChartComponent = ({
|
|
|
10406
10412
|
chartProps,
|
|
10407
10413
|
trackProps,
|
|
10408
10414
|
widgetCardProps,
|
|
10415
|
+
containerProps,
|
|
10409
10416
|
withLabels = true,
|
|
10410
10417
|
withTrack = true,
|
|
10411
10418
|
withNeedle = true,
|
|
@@ -10450,6 +10457,7 @@ const GaugeChartComponent = ({
|
|
|
10450
10457
|
const pieOffset = centeredOffset(containerSize, pieSize);
|
|
10451
10458
|
return (0,jsx_runtime_namespaceObject.jsx)("div", {
|
|
10452
10459
|
css: GaugeChart_ref,
|
|
10460
|
+
...containerProps,
|
|
10453
10461
|
children: (0,jsx_runtime_namespaceObject.jsx)(WithWidgetCard, {
|
|
10454
10462
|
features: features,
|
|
10455
10463
|
cardProps: {
|
|
@@ -10663,6 +10671,7 @@ var BarGaugeChart_ref = true ? {
|
|
|
10663
10671
|
const BarGaugeChartComponent = ({
|
|
10664
10672
|
title,
|
|
10665
10673
|
widgetCardProps,
|
|
10674
|
+
wrapperProps,
|
|
10666
10675
|
bars = [],
|
|
10667
10676
|
features = []
|
|
10668
10677
|
}) => (0,jsx_runtime_namespaceObject.jsx)(WithWidgetCard, {
|
|
@@ -10678,6 +10687,7 @@ const BarGaugeChartComponent = ({
|
|
|
10678
10687
|
direction: "column",
|
|
10679
10688
|
alignItems: "start",
|
|
10680
10689
|
css: BarGaugeChart_ref,
|
|
10690
|
+
...wrapperProps,
|
|
10681
10691
|
children: bars.map((barProps, index) => (0,jsx_runtime_namespaceObject.jsx)(GaugeBar, {
|
|
10682
10692
|
...barProps
|
|
10683
10693
|
}, index))
|