@ssa-ui-kit/widgets 0.0.19-alpha → 0.0.21-alpha

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 (43) hide show
  1. package/custom-shots/widgets-bots-table--no-control-orders--menu-opened_[w1920px].png +0 -0
  2. package/custom-shots/widgets-bots-table--no-control-orders--run-reason-modal_[w1920px].png +0 -0
  3. package/custom-shots/widgets-collapsiblenavbar-opened__[w1439px].png +0 -0
  4. package/custom-shots/widgets-collapsiblenavbar-opened__[w1439px]_statistics_submenu_popover.png +0 -0
  5. package/custom-shots/widgets-collapsiblenavbar-opened__[w1920px].png +0 -0
  6. package/custom-shots/widgets-collapsiblenavbar-opened__[w1920px]_side_menu_expanded.png +0 -0
  7. package/custom-shots/widgets-collapsiblenavbar-opened__[w1920px]_statistics_submenu_expanded.png +0 -0
  8. package/custom-shots/widgets-collapsiblenavbar-opened__[w1920px]_statistics_submenu_popover.png +0 -0
  9. package/custom-shots/widgets-collapsiblenavbar-opened__[w899px]_menu_opened.png +0 -0
  10. package/custom-shots/widgets-collapsiblenavbar-opened__[w899px]_statistics_submenu.png +0 -0
  11. package/custom-shots/widgets-filters--default__[w1920px].png +0 -0
  12. package/custom-shots/widgets-filters--more-button-items-selected__[w390px].png +0 -0
  13. package/custom-shots/widgets-linkstabbar--current-focus__[w1920px].png +0 -0
  14. package/custom-shots/widgets-meal-nutrients--hint-opened__[w1440px].png +0 -0
  15. package/custom-shots/widgets-meal-nutrients--hint-opened__[w1920px].png +0 -0
  16. package/custom-shots/widgets-meal-nutrients--hint-opened__[w900px].png +0 -0
  17. package/custom-shots/widgets-meal-nutrients--hint-opened__dropdown__[w390px].png +0 -0
  18. package/custom-shots/widgets-notification-menu--is-opened__[w1920px].png +0 -0
  19. package/custom-shots/widgets-notification-menu--is-opened__[w900px].png +0 -0
  20. package/custom-shots/widgets-searchbox--cross-icon__[w900px].png +0 -0
  21. package/custom-shots/widgets-searchbox--search-icon__[w900px].png +0 -0
  22. package/custom-shots/widgets-table-filters--opened__[w1920px].png +0 -0
  23. package/custom-shots/widgets-trading-info-card--hover__[w1920px].png +0 -0
  24. package/custom-shots/widgets-user-profile--is-opened__[w1920px].png +0 -0
  25. package/dist/components/CollapsibleNavBar/TriggerIcon.d.ts +4 -2
  26. package/dist/components/CollapsibleNavBar/stories/CustomIcon.d.ts +1 -0
  27. package/dist/components/CollapsibleNavBar/types.d.ts +2 -1
  28. package/dist/components/NavBar/types.d.ts +3 -0
  29. package/dist/components/TradingInfoCard/TradingInfoCard.d.ts +1 -1
  30. package/dist/index.js +1 -1
  31. package/dist/index.js.map +1 -1
  32. package/package.json +4 -4
  33. package/src/components/CollapsibleNavBar/NavBarItemWithSubMenu.tsx +2 -2
  34. package/src/components/CollapsibleNavBar/NavBarItemWithoutSubMenu.tsx +7 -2
  35. package/src/components/CollapsibleNavBar/TriggerIcon.tsx +17 -7
  36. package/src/components/CollapsibleNavBar/stories/CollapsibleNavBar.stories.tsx +20 -0
  37. package/src/components/CollapsibleNavBar/stories/CustomIcon.tsx +20 -0
  38. package/src/components/CollapsibleNavBar/types.ts +2 -1
  39. package/src/components/NavBar/types.ts +3 -0
  40. package/src/components/TradingInfoCard/TradingInfoCard.stories.tsx +1 -1
  41. package/src/components/TradingInfoCard/TradingInfoCard.tsx +24 -18
  42. package/src/components/TradingScoreboard/helpers.tsx +1 -1
  43. package/tsbuildcache +1 -1
@@ -1,6 +1,8 @@
1
- import { IMapIcons } from '@ssa-ui-kit/core';
2
- export declare const TriggerIcon: ({ iconName, iconSize, className, }: {
1
+ /// <reference types="react" />
2
+ import { IMapIcons, SVGProps } from '@ssa-ui-kit/core';
3
+ export declare const TriggerIcon: ({ iconName, iconSize, className, CustomIcon, }: {
3
4
  iconName: keyof IMapIcons;
4
5
  iconSize?: number | undefined;
5
6
  className?: string | undefined;
7
+ CustomIcon?: ((props: Omit<SVGProps, 'fill'>) => JSX.Element) | undefined;
6
8
  }) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
@@ -0,0 +1 @@
1
+ export declare const CustomIcon: () => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
@@ -4,9 +4,10 @@ export interface CollapsibleNavBarItem extends NavBarExtendedItem {
4
4
  iconSize: number;
5
5
  css?: React.CSSProperties;
6
6
  }
7
- export interface CollapsibleNavBarGroup extends Required<NavBarExtendedGroup> {
7
+ export interface CollapsibleNavBarGroup extends NavBarExtendedGroup {
8
8
  iconSize: number;
9
9
  css?: React.CSSProperties;
10
+ prefix: string;
10
11
  }
11
12
  export interface CollapsibleNavBarExtendedProps {
12
13
  items: Array<CollapsibleNavBarItem | CollapsibleNavBarGroup>;
@@ -1,3 +1,4 @@
1
+ import { EmotionJSX } from '@emotion/react/types/jsx-namespace';
1
2
  import { IMapIcons } from '@ssa-ui-kit/core';
2
3
  export interface INavBarProps {
3
4
  items: Array<{
@@ -6,11 +7,13 @@ export interface INavBarProps {
6
7
  }>;
7
8
  }
8
9
  export type NavBarExtendedItem = {
10
+ CustomIcon?: () => EmotionJSX.Element;
9
11
  path: string;
10
12
  iconName: keyof IMapIcons;
11
13
  title: string;
12
14
  };
13
15
  export type NavBarExtendedGroup = {
16
+ CustomIcon?: () => EmotionJSX.Element;
14
17
  prefix?: string;
15
18
  iconName: keyof IMapIcons;
16
19
  title: string;
@@ -1,3 +1,3 @@
1
1
  import { ITradingInfoCardProps } from './types';
2
- declare const TradingInfoCard: ({ value, unit, title, onClick, icon, link, }: ITradingInfoCardProps) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
2
+ declare const TradingInfoCard: (props: ITradingInfoCardProps) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
3
3
  export default TradingInfoCard;