@selfdecode/sd-component-library 2.44.9 → 2.44.10

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.
@@ -1,5 +1,5 @@
1
1
  import { NavbarProps } from "../navbar/presentational/interfaces";
2
- export interface UpdatedNavbarProps extends Pick<NavbarProps, "history" | "searchValue" | "onSearch" | "searchResults" | "onClickSearch" | "langCodes" | "selectedLangCode" | "onLanguageSwitch" | "hideSearch"> {
2
+ export interface UpdatedNavbarProps extends Pick<NavbarProps, "history" | "searchValue" | "onClickSearch" | "langCodes" | "selectedLangCode" | "onLanguageSwitch" | "hideSearch">, Partial<Pick<NavbarProps, "onSearch" | "searchResults">> {
3
3
  isProfessional?: boolean;
4
4
  isV2User?: boolean;
5
5
  isOnLegacy?: boolean;
@@ -1,6 +1,6 @@
1
- import { NavbarProps } from "../../../../../navbar/presentational/interfaces";
2
1
  import { UnfoldedNavbarContainerProps } from "../unfolded-navbar-container/interfaces";
3
- export interface UpdatedNavbarSearchProps extends Pick<NavbarProps, "searchResults" | "searchValue" | "onSearch">, Pick<UnfoldedNavbarContainerProps, "onMaskClick"> {
2
+ import { UpdatedNavbarProps } from "../../../../interfaces";
3
+ export interface UpdatedNavbarSearchProps extends Pick<UpdatedNavbarProps, "searchResults" | "searchValue" | "onSearch">, Pick<UnfoldedNavbarContainerProps, "onMaskClick"> {
4
4
  hideSearch: () => void;
5
5
  showNavigation: () => void;
6
6
  }
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ import { BoxProps } from "rebass";
3
+ export declare const FlexCenter: React.FC<BoxProps>;
@@ -0,0 +1 @@
1
+ export { FlexCenter } from "./flex-center";
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ import { ActionsMenuProps as Props } from "./interfaces";
3
+ export declare const ActionsMenu: React.FC<Props>;
@@ -0,0 +1 @@
1
+ export { ActionsMenu } from "./actions-menu";
@@ -0,0 +1,16 @@
1
+ import { SxProps } from "rebass";
2
+ export interface ActionsMenuProps {
3
+ actions: ActionConfig[];
4
+ actionsBoxWidth?: string;
5
+ actionBoxPx?: string | string[];
6
+ actionBoxPy?: string | string[];
7
+ containerSx?: SxProps["sx"];
8
+ /**
9
+ * Whether to hide options box after selection.
10
+ */
11
+ closeAfterSelection?: boolean;
12
+ }
13
+ export interface ActionConfig {
14
+ text: string;
15
+ onClick: () => void;
16
+ }
package/lib/index.d.ts CHANGED
@@ -55,6 +55,7 @@ export { MaxMaxContainer } from "./components/containers/grid-containers/max-max
55
55
  export { SectionContainer } from "./components/containers/section-container";
56
56
  export { MaxWidthContainer } from "./components/containers/max-width-container";
57
57
  export { GridContainerV2 as Grid } from "./components/containers/grid-containers/grid-container-v2";
58
+ export { FlexCenter } from "./components/containers/flex-center";
58
59
  export { CarouselSectionContainer } from "./components/carousels/carousel-section-container";
59
60
  export { ResponsiveGridContainerT1 } from "./components/containers/responsive-containers/responsive-container-t1";
60
61
  export { ResponsiveGridContainerT2 } from "./components/containers/responsive-containers/responsive-container-t2";
@@ -102,6 +103,7 @@ export { PrimaryLink } from "./components/links/primary-link";
102
103
  export { List } from "./components/lists/list";
103
104
  export declare type ListProps = BaseListProps;
104
105
  export { PrimaryList } from "./components/lists/primary-list";
106
+ export { ActionsMenu } from "./components/menus/actions-menu";
105
107
  export { BaseOutlineMeter } from "./components/meters/base-outline-meter";
106
108
  export declare type BaseOutlineMeterProps = BaseBaseOutlineMeterProps;
107
109
  export { DiscreteOutlineMeter } from "./components/meters/discrete-outline-meter";