@selfdecode/sd-component-library 2.44.9 → 2.44.12

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 @@
1
+ export { MaxWidthContainerV2 } from "./max-width-container-v2";
@@ -0,0 +1,2 @@
1
+ import { MaxWidthContainerProps } from "../max-width-container/interfaces";
2
+ export declare type MaxWidthContainerV2Props = MaxWidthContainerProps;
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ import { MaxWidthContainerV2Props as Props } from "./interfaces";
3
+ export declare const MaxWidthContainerV2: React.FC<Props>;
@@ -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
+ }
@@ -8,7 +8,7 @@ export declare type SelectorOptionV2<T extends string | null = string> = {
8
8
  /**
9
9
  * Defines the selector component's properties.
10
10
  */
11
- export interface SelectorV2Props<T extends string = string> extends Omit<SelectorProps, "onChange" | "defaultValue" | "options">, Pick<BaseSelectorV2Props, "pl" | "containerVariant" | "labelContainerAlignItems"> {
11
+ export interface SelectorV2Props<T extends string = string> extends Omit<SelectorProps, "onChange" | "defaultValue" | "options">, Pick<BaseSelectorV2Props, "pl" | "containerVariant" | "labelContainerAlignItems" | "disabled"> {
12
12
  /**
13
13
  * Default value of the selector.
14
14
  */
@@ -30,4 +30,8 @@ export interface BaseSelectorV2Props<T extends string = string> extends Omit<Sel
30
30
  * Variant for the selector container.
31
31
  */
32
32
  containerVariant?: string;
33
+ /**
34
+ * Whether to force disabling of the select element.
35
+ */
36
+ disabled?: boolean;
33
37
  }
package/lib/index.d.ts CHANGED
@@ -54,7 +54,9 @@ export { MaxFrContainer } from "./components/containers/grid-containers/max-fr-c
54
54
  export { MaxMaxContainer } from "./components/containers/grid-containers/max-max-container";
55
55
  export { SectionContainer } from "./components/containers/section-container";
56
56
  export { MaxWidthContainer } from "./components/containers/max-width-container";
57
+ export { MaxWidthContainerV2 as MaxWidth } from "./components/containers/max-width-container-v2";
57
58
  export { GridContainerV2 as Grid } from "./components/containers/grid-containers/grid-container-v2";
59
+ export { FlexCenter } from "./components/containers/flex-center";
58
60
  export { CarouselSectionContainer } from "./components/carousels/carousel-section-container";
59
61
  export { ResponsiveGridContainerT1 } from "./components/containers/responsive-containers/responsive-container-t1";
60
62
  export { ResponsiveGridContainerT2 } from "./components/containers/responsive-containers/responsive-container-t2";
@@ -102,6 +104,7 @@ export { PrimaryLink } from "./components/links/primary-link";
102
104
  export { List } from "./components/lists/list";
103
105
  export declare type ListProps = BaseListProps;
104
106
  export { PrimaryList } from "./components/lists/primary-list";
107
+ export { ActionsMenu } from "./components/menus/actions-menu";
105
108
  export { BaseOutlineMeter } from "./components/meters/base-outline-meter";
106
109
  export declare type BaseOutlineMeterProps = BaseBaseOutlineMeterProps;
107
110
  export { DiscreteOutlineMeter } from "./components/meters/discrete-outline-meter";