@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.
- package/lib/components/complex/updated-navbar/interfaces.d.ts +1 -1
- package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/partials/updated-navbar-search/interfaces.d.ts +2 -2
- package/lib/components/containers/flex-center/flex-center.d.ts +3 -0
- package/lib/components/containers/flex-center/index.d.ts +1 -0
- package/lib/components/containers/max-width-container-v2/index.d.ts +1 -0
- package/lib/components/containers/max-width-container-v2/interfaces.d.ts +2 -0
- package/lib/components/containers/max-width-container-v2/max-width-container-v2.d.ts +3 -0
- package/lib/components/menus/actions-menu/actions-menu.d.ts +3 -0
- package/lib/components/menus/actions-menu/index.d.ts +1 -0
- package/lib/components/menus/actions-menu/interfaces.d.ts +16 -0
- package/lib/components/selectors/selector-v2/interfaces.d.ts +1 -1
- package/lib/components/selectors/selector-v2/partials/base-selector-v2/interfaces.d.ts +4 -0
- package/lib/index.d.ts +3 -0
- package/lib/index.js +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { NavbarProps } from "../navbar/presentational/interfaces";
|
|
2
|
-
export interface UpdatedNavbarProps extends Pick<NavbarProps, "history" | "searchValue" | "
|
|
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
|
-
|
|
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 @@
|
|
|
1
|
+
export { FlexCenter } from "./flex-center";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { MaxWidthContainerV2 } from "./max-width-container-v2";
|
|
@@ -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
|
*/
|
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";
|