@ssa-ui-kit/core 2.21.3 → 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 (28) 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/ProgressCircle/ProgressCircle.d.ts +1 -1
  13. package/dist/components/ProgressCircle/ProgressCircleBase.d.ts +1 -0
  14. package/dist/components/ProgressCircle/types.d.ts +8 -0
  15. package/dist/components/TabBar/stories/helpers.d.ts +1 -1
  16. package/dist/components/Table/stories/{NoControlOrders → StyledTable}/components/TableList.d.ts +1 -1
  17. package/dist/components/Table/stories/StyledTable/components/index.d.ts +1 -0
  18. package/dist/components/Tooltip/types.d.ts +1 -0
  19. package/dist/index.js +36 -8
  20. package/dist/index.js.map +1 -1
  21. package/package.json +3 -3
  22. package/dist/components/Table/stories/NoControlOrders/StoryComponent.d.ts +0 -1
  23. package/dist/components/Table/stories/NoControlOrders/components/ActionMore.d.ts +0 -4
  24. package/dist/components/Table/stories/NoControlOrders/components/Reason.d.ts +0 -3
  25. package/dist/components/Table/stories/NoControlOrders/components/TableRow.d.ts +0 -2
  26. package/dist/components/Table/stories/NoControlOrders/components/index.d.ts +0 -4
  27. package/dist/components/Table/stories/NoControlOrders/mockData.d.ts +0 -14
  28. 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,3 +1,3 @@
1
1
  import { ProgressCircleProps } from './types';
2
- declare const ProgressCircle: ({ max, currentValue, color, size, infoContent, }: ProgressCircleProps) => import("@emotion/react/jsx-runtime").JSX.Element;
2
+ declare const ProgressCircle: ({ max, currentValue, color, size, infoContent, mode, classnames, }: ProgressCircleProps) => import("@emotion/react/jsx-runtime").JSX.Element;
3
3
  export default ProgressCircle;
@@ -7,4 +7,5 @@ export declare const ProgressCircleBase: import("@emotion/styled").StyledCompone
7
7
  svgOffset: number;
8
8
  color: string;
9
9
  size: number;
10
+ mode: "default" | "infinite";
10
11
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -4,4 +4,12 @@ export interface ProgressCircleProps {
4
4
  size?: number;
5
5
  color?: keyof MainColors;
6
6
  infoContent?: React.ReactNode | string;
7
+ mode?: 'default' | 'infinite';
8
+ classnames?: {
9
+ root?: string;
10
+ outer?: string;
11
+ inner?: string;
12
+ svg?: string;
13
+ svgCircle?: string;
14
+ };
7
15
  }
@@ -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
 
@@ -6334,13 +6336,23 @@ const generateGradient = svgOffset => (0,react_namespaceObject.keyframes)`
6334
6336
  stroke-dashoffset: ${svgOffset};
6335
6337
  }
6336
6338
  `;
6339
+ const generateInfinite = () => (0,react_namespaceObject.keyframes)`
6340
+ 0% {
6341
+ transform: rotate(0deg);
6342
+ }
6343
+ 100% {
6344
+ transform: rotate(360deg);
6345
+ }
6346
+ `;
6337
6347
  const ProgressCircleBase = /*#__PURE__*/base_default()("div", true ? {
6338
6348
  target: "eok4i9s0"
6339
6349
  } : 0)("width:", ({
6340
6350
  size
6341
6351
  }) => size, "px;height:", ({
6342
6352
  size
6343
- }) => size, "px;position:relative;svg{position:absolute;top:0;left:0;filter:", ({
6353
+ }) => size, "px;position:relative;animation:", () => generateInfinite(), " 2s linear infinite forwards;animation:", ({
6354
+ mode
6355
+ }) => mode === 'default' && 'none', ";svg{position:absolute;top:0;left:0;filter:", ({
6344
6356
  theme,
6345
6357
  color
6346
6358
  }) => `drop-shadow(3px 5px 10px ${theme.colors[`${color}Lighter40`] || theme.colors[color]})`, ";}circle{fill:none;stroke:url(#", ({
@@ -6353,7 +6365,11 @@ const ProgressCircleBase = /*#__PURE__*/base_default()("div", true ? {
6353
6365
  fullStroke
6354
6366
  }) => fullStroke, ";animation:", ({
6355
6367
  svgOffset
6356
- }) => generateGradient(svgOffset), " 1s linear forwards;}" + ( true ? "" : 0));
6368
+ }) => generateGradient(svgOffset), " 1s linear forwards;animation-direction:", ({
6369
+ mode
6370
+ }) => mode === 'infinite' && 'reverse !important', ";animation-play-state:", ({
6371
+ mode
6372
+ }) => mode === 'infinite' && 'paused !important', ";}" + ( true ? "" : 0));
6357
6373
  ;// ./src/components/ProgressCircle/ProgressCircleOuter.tsx
6358
6374
 
6359
6375
  const ProgressCircleOuter = /*#__PURE__*/base_default()("div", true ? {
@@ -6388,7 +6404,9 @@ const ProgressCircle = ({
6388
6404
  currentValue,
6389
6405
  color = 'green',
6390
6406
  size = 160,
6391
- infoContent
6407
+ infoContent,
6408
+ mode = 'default',
6409
+ classnames
6392
6410
  }) => {
6393
6411
  const theme = (0,react_namespaceObject.useTheme)();
6394
6412
  const gradientId = (0,external_react_namespaceObject.useId)();
@@ -6405,10 +6423,14 @@ const ProgressCircle = ({
6405
6423
  svgOffset: svgOffset,
6406
6424
  color: color,
6407
6425
  size: size,
6426
+ mode: mode,
6427
+ className: classnames?.root,
6408
6428
  children: [(0,jsx_runtime_namespaceObject.jsx)(ProgressCircleOuter, {
6409
6429
  size: size,
6430
+ className: classnames?.outer,
6410
6431
  children: (0,jsx_runtime_namespaceObject.jsx)(ProgressCircleInner, {
6411
6432
  size: size,
6433
+ className: classnames?.inner,
6412
6434
  children: infoContent
6413
6435
  })
6414
6436
  }), (0,jsx_runtime_namespaceObject.jsxs)("svg", {
@@ -6418,6 +6440,7 @@ const ProgressCircle = ({
6418
6440
  preserveAspectRatio: "xMinYMin slice",
6419
6441
  width: "100%",
6420
6442
  height: "100%",
6443
+ className: classnames?.svg,
6421
6444
  children: [(0,jsx_runtime_namespaceObject.jsx)("defs", {
6422
6445
  children: (0,jsx_runtime_namespaceObject.jsxs)("linearGradient", {
6423
6446
  id: gradientId,
@@ -6432,7 +6455,8 @@ const ProgressCircle = ({
6432
6455
  }), (0,jsx_runtime_namespaceObject.jsx)("circle", {
6433
6456
  cx: size / 2,
6434
6457
  cy: size / 2,
6435
- r: size / 2 - barStroke
6458
+ r: size / 2 - barStroke,
6459
+ className: classnames?.svgCircle
6436
6460
  })]
6437
6461
  })]
6438
6462
  });
@@ -8168,6 +8192,7 @@ const useTooltip = props => {
8168
8192
  placement,
8169
8193
  enableClick = true,
8170
8194
  enableHover = false,
8195
+ enableClientPoint = false,
8171
8196
  offsetOptions = 12,
8172
8197
  size = 'small',
8173
8198
  hasArrow = true,
@@ -8197,7 +8222,10 @@ const useTooltip = props => {
8197
8222
  });
8198
8223
  const dismiss = (0,external_floating_ui_react_namespaceObject.useDismiss)(context);
8199
8224
  const role = (0,external_floating_ui_react_namespaceObject.useRole)(context);
8200
- 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]);
8201
8229
  return (0,external_react_namespaceObject.useMemo)(() => ({
8202
8230
  isOpen,
8203
8231
  setIsOpen,