@ssa-ui-kit/core 2.22.0 → 2.22.1

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 (25) hide show
  1. package/dist/components/AccordionGroup/stories/helpers.d.ts +1 -1
  2. package/dist/components/Charts/BarGaugeChart/BarGaugeChart.d.ts +1 -4
  3. package/dist/components/Charts/BarLineComplexChart/BarLineComplexChart.d.ts +3 -4
  4. package/dist/components/Charts/BigNumberChart/BigNumberChart.d.ts +1 -4
  5. package/dist/components/Charts/CandlestickChart/CandlestickChart.d.ts +1 -4
  6. package/dist/components/Charts/GaugeChart/GaugeChart.d.ts +3 -4
  7. package/dist/components/Charts/PieChart/PieChart.d.ts +1 -4
  8. package/dist/components/Charts/RadarChart/RadarChart.d.ts +1 -4
  9. package/dist/components/Charts/SegmentedPieChart/SegmentedPieChart.d.ts +1 -4
  10. package/dist/components/Charts/TreeMapChart/TreeMapChart.d.ts +1 -4
  11. package/dist/components/ProgressBar/ProgressBar.d.ts +1 -1
  12. package/dist/components/TabBar/stories/helpers.d.ts +1 -1
  13. package/dist/components/Table/stories/{NoControlOrders → StyledTable}/components/TableList.d.ts +1 -1
  14. package/dist/components/Table/stories/StyledTable/components/index.d.ts +1 -0
  15. package/dist/components/Tooltip/types.d.ts +1 -0
  16. package/dist/index.js +10 -4
  17. package/dist/index.js.map +1 -1
  18. package/package.json +3 -3
  19. package/dist/components/Table/stories/NoControlOrders/StoryComponent.d.ts +0 -1
  20. package/dist/components/Table/stories/NoControlOrders/components/ActionMore.d.ts +0 -4
  21. package/dist/components/Table/stories/NoControlOrders/components/Reason.d.ts +0 -3
  22. package/dist/components/Table/stories/NoControlOrders/components/TableRow.d.ts +0 -2
  23. package/dist/components/Table/stories/NoControlOrders/components/index.d.ts +0 -4
  24. package/dist/components/Table/stories/NoControlOrders/mockData.d.ts +0 -14
  25. 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
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
- };
3
+ export declare const BarGaugeChart: typeof BarGaugeChartComponent;
@@ -1,5 +1,4 @@
1
1
  import { BarLineComplexChartProps } from './types';
2
- export declare const BarLineComplexChart: {
3
- (props: BarLineComplexChartProps): import("@emotion/react/jsx-runtime").JSX.Element;
4
- displayName: string;
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;
@@ -19,7 +19,6 @@ export interface GaugeChartProps extends Pick<GaugeChartLabelsProps, 'maxLabel'
19
19
  features?: GaugeChartFeature[];
20
20
  widgetCardProps?: WidgetCardProps;
21
21
  }
22
- export declare const GaugeChart: {
23
- (props: GaugeChartProps): import("@emotion/react/jsx-runtime").JSX.Element;
24
- displayName: string;
25
- };
22
+ declare const GaugeChartComponent: ({ minLabel, maxLabel, totalLabel, unitLabel, minValue, maxValue, value, title, chartProps, trackProps, widgetCardProps, withLabels, withTrack, withNeedle, features, segments, ticks, }: GaugeChartProps) => import("@emotion/react/jsx-runtime").JSX.Element;
23
+ export declare const GaugeChart: typeof GaugeChartComponent;
24
+ 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: ({ percentage, color, vertical, bgColor, size, }: ProgressBarProps) => import("@emotion/react/jsx-runtime").JSX.Element;
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;
@@ -1,2 +1,2 @@
1
- import { StyledTableProps } from '../../StyledTable/types';
1
+ import { StyledTableProps } from '../types';
2
2
  export declare const TableList: ({ children, ...rest }: StyledTableProps) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -3,4 +3,5 @@ export * from './Trade';
3
3
  export * from './PNL';
4
4
  export * from './ROI';
5
5
  export * from './TableTag';
6
+ export * from './TableList';
6
7
  export * from './Actions';
@@ -10,6 +10,7 @@ export interface TooltipProps extends CommonProps {
10
10
  placement?: Placement;
11
11
  enableHover?: boolean;
12
12
  enableClick?: boolean;
13
+ enableClientPoint?: boolean;
13
14
  offsetOptions?: OffsetOptions;
14
15
  size?: TooltipSize;
15
16
  hasArrow?: boolean;
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 interactionsData = (0,external_floating_ui_react_namespaceObject.useInteractions)([hover, click, dismiss, role]);
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,