@selfdecode/sd-component-library 2.44.7 → 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.
Files changed (73) hide show
  1. package/lib/components/buttons/logos/logo/interfaces.d.ts +1 -1
  2. package/lib/components/buttons/logos/navbar-logo/interfaces.d.ts +1 -1
  3. package/lib/components/complex/navbar/partials/navbar-v1/partials/navbar-mobile-v1/partials/icon-buttons/icon-buttons.d.ts +3 -3
  4. package/lib/components/complex/navbar/partials/navbar-v2/partials/interfaces.d.ts +4 -0
  5. package/lib/components/complex/updated-navbar/constants.d.ts +59 -0
  6. package/lib/components/complex/updated-navbar/index.d.ts +1 -0
  7. package/lib/components/complex/updated-navbar/interfaces.d.ts +6 -0
  8. package/lib/components/complex/updated-navbar/partials/updated-navbar-desktop/index.d.ts +1 -0
  9. package/lib/components/complex/updated-navbar/partials/updated-navbar-desktop/interfaces.d.ts +4 -0
  10. package/lib/components/complex/updated-navbar/partials/updated-navbar-desktop/partials/updated-menu-box/index.d.ts +1 -0
  11. package/lib/components/complex/updated-navbar/partials/updated-navbar-desktop/partials/updated-menu-box/interfaces.d.ts +14 -0
  12. package/lib/components/complex/updated-navbar/partials/updated-navbar-desktop/partials/updated-menu-box/updated-menu-box.d.ts +3 -0
  13. package/lib/components/complex/updated-navbar/partials/updated-navbar-desktop/partials/updated-menu-row/index.d.ts +1 -0
  14. package/lib/components/complex/updated-navbar/partials/updated-navbar-desktop/partials/updated-menu-row/interfaces.d.ts +11 -0
  15. package/lib/components/complex/updated-navbar/partials/updated-navbar-desktop/partials/updated-menu-row/updated-menu-row.d.ts +3 -0
  16. package/lib/components/complex/updated-navbar/partials/updated-navbar-desktop/partials/updated-navbar-item/index.d.ts +1 -0
  17. package/lib/components/complex/updated-navbar/partials/updated-navbar-desktop/partials/updated-navbar-item/interfaces.d.ts +11 -0
  18. package/lib/components/complex/updated-navbar/partials/updated-navbar-desktop/partials/updated-navbar-item/updated-navbar-item.d.ts +3 -0
  19. package/lib/components/complex/updated-navbar/partials/updated-navbar-desktop/partials/v2-to-legacy-switch-desktop/index.d.ts +1 -0
  20. package/lib/components/complex/updated-navbar/partials/updated-navbar-desktop/partials/v2-to-legacy-switch-desktop/interfaces.d.ts +4 -0
  21. package/lib/components/complex/updated-navbar/partials/updated-navbar-desktop/partials/v2-to-legacy-switch-desktop/v2-to-legacy-switch-desktop.d.ts +3 -0
  22. package/lib/components/complex/updated-navbar/partials/updated-navbar-desktop/updated-navbar-desktop.d.ts +3 -0
  23. package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/index.d.ts +1 -0
  24. package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/interfaces.d.ts +3 -0
  25. package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/partials/unfolded-navbar-container/index.d.ts +1 -0
  26. package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/partials/unfolded-navbar-container/interfaces.d.ts +5 -0
  27. package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/partials/unfolded-navbar-container/unfolded-navbar-container.d.ts +3 -0
  28. package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/partials/updated-navbar-folded/index.d.ts +1 -0
  29. package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/partials/updated-navbar-folded/interfaces.d.ts +5 -0
  30. package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/partials/updated-navbar-folded/updated-navbar-folded.d.ts +3 -0
  31. package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/partials/updated-navbar-navigation/index.d.ts +1 -0
  32. package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/partials/updated-navbar-navigation/interfaces.d.ts +6 -0
  33. package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/partials/updated-navbar-navigation/partials/item-row/index.d.ts +1 -0
  34. package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/partials/updated-navbar-navigation/partials/item-row/interfaces.d.ts +11 -0
  35. package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/partials/updated-navbar-navigation/partials/item-row/item-row.d.ts +3 -0
  36. package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/partials/updated-navbar-navigation/partials/primary-folded-item/index.d.ts +1 -0
  37. package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/partials/updated-navbar-navigation/partials/primary-folded-item/interfaces.d.ts +8 -0
  38. package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/partials/updated-navbar-navigation/partials/primary-folded-item/primary-folded-item.d.ts +3 -0
  39. package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/partials/updated-navbar-navigation/partials/secondary-folded-item/index.d.ts +1 -0
  40. package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/partials/updated-navbar-navigation/partials/secondary-folded-item/interfaces.d.ts +10 -0
  41. package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/partials/updated-navbar-navigation/partials/secondary-folded-item/secondary-folded-item.d.ts +3 -0
  42. package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/partials/updated-navbar-navigation/partials/unfolded-item/index.d.ts +1 -0
  43. package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/partials/updated-navbar-navigation/partials/unfolded-item/interfaces.d.ts +9 -0
  44. package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/partials/updated-navbar-navigation/partials/unfolded-item/unfolded-item.d.ts +3 -0
  45. package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/partials/updated-navbar-navigation/partials/unfolded-item-row/index.d.ts +1 -0
  46. package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/partials/updated-navbar-navigation/partials/unfolded-item-row/interfaces.d.ts +9 -0
  47. package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/partials/updated-navbar-navigation/partials/unfolded-item-row/unfolded-item-row.d.ts +3 -0
  48. package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/partials/updated-navbar-navigation/updated-navbar-navigation.d.ts +3 -0
  49. package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/partials/updated-navbar-search/index.d.ts +1 -0
  50. package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/partials/updated-navbar-search/interfaces.d.ts +6 -0
  51. package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/partials/updated-navbar-search/updated-navbar-search.d.ts +3 -0
  52. package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/partials/v2-to-legacy-switch-mobile/index.d.ts +1 -0
  53. package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/partials/v2-to-legacy-switch-mobile/interfaces.d.ts +3 -0
  54. package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/partials/v2-to-legacy-switch-mobile/v2-to-legacy-switch-mobile.d.ts +3 -0
  55. package/lib/components/complex/updated-navbar/partials/updated-navbar-mobile/updated-navbar-mobile.d.ts +3 -0
  56. package/lib/components/complex/updated-navbar/updated-navbar.d.ts +3 -0
  57. package/lib/components/containers/flex-center/flex-center.d.ts +3 -0
  58. package/lib/components/containers/flex-center/index.d.ts +1 -0
  59. package/lib/components/dividers/divider/interfaces.d.ts +4 -0
  60. package/lib/components/inputs/search-input/presentational/interfaces.d.ts +16 -2
  61. package/lib/components/interfaces.d.ts +5 -5
  62. package/lib/components/links/link/interfaces.d.ts +6 -2
  63. package/lib/components/links/primary-link/interfaces.d.ts +1 -6
  64. package/lib/components/menus/actions-menu/actions-menu.d.ts +3 -0
  65. package/lib/components/menus/actions-menu/index.d.ts +1 -0
  66. package/lib/components/menus/actions-menu/interfaces.d.ts +16 -0
  67. package/lib/components/switches/toggle-switch/index.d.ts +1 -0
  68. package/lib/components/switches/toggle-switch/interfaces.d.ts +4 -0
  69. package/lib/components/switches/toggle-switch/toggle-switch.d.ts +3 -0
  70. package/lib/components/texts/base-text/interfaces.d.ts +2 -2
  71. package/lib/index.d.ts +4 -0
  72. package/lib/index.js +1 -1
  73. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  import { ButtonProps } from "../../button";
2
- export declare type BaseButtonProps = Pick<ButtonProps, "variant" | "children" | "bg" | "m" | "mt" | "mr" | "mb" | "ml">;
2
+ export declare type BaseButtonProps = Pick<ButtonProps, "variant" | "children" | "bg" | "m" | "mt" | "mr" | "mb" | "ml" | "minWidth">;
3
3
  export interface LogoProps extends BaseButtonProps {
4
4
  }
5
5
  export declare type WrapperLogoProps = Pick<LogoProps, "bg" | "m" | "mt" | "mr" | "mb" | "ml">;
@@ -1,2 +1,2 @@
1
1
  import { LogoProps } from "../logo";
2
- export declare type NavbarLogoProps = Pick<LogoProps, "bg" | "m" | "mt" | "mr" | "mb" | "ml">;
2
+ export declare type NavbarLogoProps = Pick<LogoProps, "bg" | "m" | "mt" | "mr" | "mb" | "ml" | "minWidth">;
@@ -4,6 +4,6 @@ export declare const IconButton: React.FC<IconButtonProps>;
4
4
  export declare const ShortArrowIconButton: React.FC<ShortArrowIconButtonProps>;
5
5
  export declare const DropDownIconButton: React.FC<BasicButtonProps>;
6
6
  export declare const DropUpIconButton: React.FC<BasicButtonProps>;
7
- export declare const SearchIconButton: React.FC<BasicButtonProps>;
8
- export declare const CrossIconButton: React.FC<BasicButtonProps>;
9
- export declare const HamburgerIconButton: React.FC<BasicButtonProps>;
7
+ export declare const SearchIconButton: React.FC<Omit<IconButtonProps, "IconComponent">>;
8
+ export declare const CrossIconButton: React.FC<Omit<IconButtonProps, "IconComponent" | "iconHeight">>;
9
+ export declare const HamburgerIconButton: React.FC<Omit<IconButtonProps, "IconComponent">>;
@@ -8,6 +8,10 @@ export declare type NavItem = {
8
8
  * Optional mobile title
9
9
  */
10
10
  mobileTitle?: string;
11
+ /**
12
+ * Optional title in toggled state.
13
+ */
14
+ toggledTitle?: string;
11
15
  /**
12
16
  * The links that should be displayed when:
13
17
  * - in desktop view, the user hovers this NavItem
@@ -0,0 +1,59 @@
1
+ /// <reference types="react" />
2
+ export declare const professionalToolsItem: {
3
+ title: string;
4
+ items: {
5
+ title: string;
6
+ url: string;
7
+ }[];
8
+ };
9
+ export declare const legacyToolsItem: {
10
+ title: string;
11
+ items: ({
12
+ title: string;
13
+ url: string;
14
+ isInternal: boolean;
15
+ } | {
16
+ title: string;
17
+ url: string;
18
+ items?: undefined;
19
+ } | {
20
+ title: string;
21
+ items: {
22
+ title: string;
23
+ url: string;
24
+ isInternal: boolean;
25
+ }[];
26
+ url?: undefined;
27
+ })[];
28
+ };
29
+ export declare const myAccountItem: {
30
+ Icon: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
31
+ title?: string | undefined;
32
+ }>;
33
+ mobileTitle: string;
34
+ items: ({
35
+ title: string;
36
+ url: string;
37
+ isInternal?: undefined;
38
+ } | {
39
+ title: string;
40
+ url: string;
41
+ isInternal: boolean;
42
+ })[];
43
+ };
44
+ export declare const regularUserItems: ({
45
+ title: string;
46
+ url: string;
47
+ items?: undefined;
48
+ } | {
49
+ title: string;
50
+ items: ({
51
+ title: string;
52
+ url: string;
53
+ } | {
54
+ url: string;
55
+ isInternal: boolean;
56
+ title: string;
57
+ })[];
58
+ url?: undefined;
59
+ })[];
@@ -0,0 +1 @@
1
+ export { UpdatedNavbar } from "./updated-navbar";
@@ -0,0 +1,6 @@
1
+ import { NavbarProps } from "../navbar/presentational/interfaces";
2
+ export interface UpdatedNavbarProps extends Pick<NavbarProps, "history" | "searchValue" | "onClickSearch" | "langCodes" | "selectedLangCode" | "onLanguageSwitch" | "hideSearch">, Partial<Pick<NavbarProps, "onSearch" | "searchResults">> {
3
+ isProfessional?: boolean;
4
+ isV2User?: boolean;
5
+ isOnLegacy?: boolean;
6
+ }
@@ -0,0 +1 @@
1
+ export { UpdatedNavbarDesktop } from "./updated-navbar-desktop";
@@ -0,0 +1,4 @@
1
+ import { UpdatedNavbarProps } from "../../interfaces";
2
+ export interface UpdatedNavbarDesktopProps extends UpdatedNavbarProps {
3
+ onSwitchClick: () => void;
4
+ }
@@ -0,0 +1 @@
1
+ export { UpdatedMenuBox } from "./updated-menu-box";
@@ -0,0 +1,14 @@
1
+ import { UpdatedMenuRowProps } from "../updated-menu-row/interfaces";
2
+ export interface ProMenuBoxProps {
3
+ visible: boolean;
4
+ isSubmenu?: boolean;
5
+ rows: UpdatedMenuRowProps[];
6
+ width?: string | string[];
7
+ maxWidth?: string | string[];
8
+ minWidth?: string | string[];
9
+ /**
10
+ * Position props.
11
+ */
12
+ top?: string | string[];
13
+ right?: string | string[];
14
+ }
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ import { ProMenuBoxProps as Props } from "./interfaces";
3
+ export declare const UpdatedMenuBox: React.FC<Props>;
@@ -0,0 +1 @@
1
+ export { UpdatedMenuRow } from "./updated-menu-row";
@@ -0,0 +1,11 @@
1
+ export interface UpdatedMenuRowProps {
2
+ title: string;
3
+ url?: string;
4
+ isInternal?: boolean;
5
+ dontTranslate?: boolean;
6
+ items?: UpdatedMenuRowProps[];
7
+ /**
8
+ * Whether it's a last row.
9
+ */
10
+ isLast?: boolean;
11
+ }
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ import { UpdatedMenuRowProps as Props } from "./interfaces";
3
+ export declare const UpdatedMenuRow: React.FC<Props>;
@@ -0,0 +1 @@
1
+ export { UpdatedNavbarItem } from "./updated-navbar-item";
@@ -0,0 +1,11 @@
1
+ import { UpdatedMenuRowProps } from "../updated-menu-row/interfaces";
2
+ import { FC, SVGProps } from "react";
3
+ export interface ProNavbarItemProps {
4
+ title?: string;
5
+ Icon?: FC<SVGProps<SVGSVGElement>>;
6
+ items?: UpdatedMenuRowProps[];
7
+ isLast?: boolean;
8
+ menuBoxRight?: string | string[];
9
+ menuBoxWidth?: string | string[];
10
+ menuBoxMaxWidth?: string | string[];
11
+ }
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ import { ProNavbarItemProps as Props } from "./interfaces";
3
+ export declare const UpdatedNavbarItem: React.FC<Props>;
@@ -0,0 +1 @@
1
+ export { V2ToLegacySwitchDesktop } from "./v2-to-legacy-switch-desktop";
@@ -0,0 +1,4 @@
1
+ export interface V2ToLegacySwitchDesktopProps {
2
+ onClick: () => void;
3
+ isOnLegacy?: boolean;
4
+ }
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ import { V2ToLegacySwitchDesktopProps as Props } from "./interfaces";
3
+ export declare const V2ToLegacySwitchDesktop: React.FC<Props>;
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ import { UpdatedNavbarDesktopProps as Props } from "./interfaces";
3
+ export declare const UpdatedNavbarDesktop: React.FC<Props>;
@@ -0,0 +1 @@
1
+ export { UpdatedNavbarMobile } from "./updated-navbar-mobile";
@@ -0,0 +1,3 @@
1
+ import { UpdatedNavbarDesktopProps } from "../updated-navbar-desktop/interfaces";
2
+ export interface UpdatedNavbarMobileProps extends UpdatedNavbarDesktopProps {
3
+ }
@@ -0,0 +1 @@
1
+ export { UnfoldedNavbarContainer } from "./unfolded-navbar-container";
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ export interface UnfoldedNavbarContainerProps {
3
+ children: React.ReactNode;
4
+ onMaskClick?: () => void;
5
+ }
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ import { UnfoldedNavbarContainerProps as Props } from "./interfaces";
3
+ export declare const UnfoldedNavbarContainer: React.FC<Props>;
@@ -0,0 +1 @@
1
+ export { UpdatedNavbarFolded } from "./updated-navbar-folded";
@@ -0,0 +1,5 @@
1
+ export interface UpdatedNavbarFoldedProps {
2
+ hideSearch?: boolean;
3
+ showSearch: () => void;
4
+ showNavigation: () => void;
5
+ }
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ import { UpdatedNavbarFoldedProps as Props } from "./interfaces";
3
+ export declare const UpdatedNavbarFolded: React.FC<Props>;
@@ -0,0 +1 @@
1
+ export { UpdatedNavbarNavigation } from "./updated-navbar-navigation";
@@ -0,0 +1,6 @@
1
+ import { UpdatedNavbarMobileProps } from "../../interfaces";
2
+ import { UnfoldedNavbarContainerProps } from "../unfolded-navbar-container/interfaces";
3
+ export interface UpdatedNavbarNavigationProps extends Pick<UpdatedNavbarMobileProps, "isOnLegacy" | "onSwitchClick" | "isProfessional" | "isV2User" | "selectedLangCode" | "langCodes" | "onLanguageSwitch" | "hideSearch">, Pick<UnfoldedNavbarContainerProps, "onMaskClick"> {
4
+ hideNavigation: () => void;
5
+ showSearch: () => void;
6
+ }
@@ -0,0 +1,11 @@
1
+ import { SxProps } from "rebass";
2
+ import { FC, SVGProps } from "react";
3
+ export interface ItemRowProps {
4
+ title?: string;
5
+ Icon?: FC<SVGProps<SVGSVGElement>>;
6
+ onClick?: () => void;
7
+ textColor?: string;
8
+ iconColor?: string;
9
+ iconDirection?: "up" | "down";
10
+ sx?: SxProps["sx"];
11
+ }
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ import { ItemRowProps as Props } from "./interfaces";
3
+ export declare const ItemRow: React.FC<Props>;
@@ -0,0 +1,8 @@
1
+ import { UpdatedMenuRowProps } from "../../../../../updated-navbar-desktop/partials/updated-menu-row/interfaces";
2
+ export interface PrimaryFoldedItemProps {
3
+ title?: string;
4
+ url?: string;
5
+ isInternal?: boolean;
6
+ items?: UpdatedMenuRowProps[];
7
+ onClick?: () => void;
8
+ }
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ import { PrimaryFoldedItemProps as Props } from "./interfaces";
3
+ export declare const PrimaryFoldedItem: React.FC<Props>;
@@ -0,0 +1,10 @@
1
+ import { FC, SVGProps } from "react";
2
+ import { UpdatedMenuRowProps } from "../../../../../updated-navbar-desktop/partials/updated-menu-row/interfaces";
3
+ export interface SecondaryFoldedItemProps {
4
+ title?: string;
5
+ url?: string;
6
+ Icon?: FC<SVGProps<SVGSVGElement>>;
7
+ items?: UpdatedMenuRowProps[];
8
+ onClick: () => void;
9
+ mt?: string | string[];
10
+ }
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ import { SecondaryFoldedItemProps as Props } from "./interfaces";
3
+ export declare const SecondaryFoldedItem: React.FC<Props>;
@@ -0,0 +1,9 @@
1
+ import { UpdatedMenuRowProps } from "../../../../../updated-navbar-desktop/partials/updated-menu-row/interfaces";
2
+ import { FC, SVGProps } from "react";
3
+ export interface UnfoldedItemProps {
4
+ title?: string;
5
+ toggledTitle?: string;
6
+ Icon?: FC<SVGProps<SVGSVGElement>>;
7
+ items?: UpdatedMenuRowProps[];
8
+ onClick: () => void;
9
+ }
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ import { UnfoldedItemProps as Props } from "./interfaces";
3
+ export declare const UnfoldedItem: React.FC<Props>;
@@ -0,0 +1,9 @@
1
+ import { UpdatedMenuRowProps } from "../../../../../updated-navbar-desktop/partials/updated-menu-row/interfaces";
2
+ export interface UnfoldedItemRowProps {
3
+ title: string;
4
+ url?: string;
5
+ isInternal?: boolean;
6
+ items?: UpdatedMenuRowProps[];
7
+ isUnfolded?: boolean;
8
+ onClick?: () => void;
9
+ }
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ import { UnfoldedItemRowProps as Props } from "./interfaces";
3
+ export declare const UnfoldedItemRow: React.FC<Props>;
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ import { UpdatedNavbarNavigationProps as Props } from "./interfaces";
3
+ export declare const UpdatedNavbarNavigation: React.FC<Props>;
@@ -0,0 +1 @@
1
+ export { UpdatedNavbarSearch } from "./updated-navbar-search";
@@ -0,0 +1,6 @@
1
+ import { UnfoldedNavbarContainerProps } from "../unfolded-navbar-container/interfaces";
2
+ import { UpdatedNavbarProps } from "../../../../interfaces";
3
+ export interface UpdatedNavbarSearchProps extends Pick<UpdatedNavbarProps, "searchResults" | "searchValue" | "onSearch">, Pick<UnfoldedNavbarContainerProps, "onMaskClick"> {
4
+ hideSearch: () => void;
5
+ showNavigation: () => void;
6
+ }
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ import { UpdatedNavbarSearchProps as Props } from "./interfaces";
3
+ export declare const UpdatedNavbarSearch: React.FC<Props>;
@@ -0,0 +1 @@
1
+ export { V2ToLegacySwitchMobile } from "./v2-to-legacy-switch-mobile";
@@ -0,0 +1,3 @@
1
+ import { V2ToLegacySwitchDesktopProps } from "../../../updated-navbar-desktop/partials/v2-to-legacy-switch-desktop/interfaces";
2
+ export interface V2ToLegacySwitchMobileProps extends V2ToLegacySwitchDesktopProps {
3
+ }
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ import { V2ToLegacySwitchMobileProps as Props } from "./interfaces";
3
+ export declare const V2ToLegacySwitchMobile: React.FC<Props>;
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ import { UpdatedNavbarMobileProps as Props } from "./interfaces";
3
+ export declare const UpdatedNavbarMobile: React.FC<Props>;
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ import { UpdatedNavbarProps as Props } from "./interfaces";
3
+ export declare const UpdatedNavbar: React.FC<Props>;
@@ -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";
@@ -21,4 +21,8 @@ export interface DividerProps extends BaseComponentProps {
21
21
  * Prop to customize divider.
22
22
  */
23
23
  sx?: SxProps["sx"];
24
+ /**
25
+ * Divider transform.
26
+ */
27
+ transform?: string;
24
28
  }
@@ -27,6 +27,10 @@ export interface SearchInputProps extends BaseInputProps {
27
27
  * should be placed when the X icon is not visible (hideX=true)
28
28
  */
29
29
  searchRight?: string;
30
+ /**
31
+ * Bottom offset of the search icon.
32
+ */
33
+ searchBottom?: string;
30
34
  /**
31
35
  * The array of results
32
36
  */
@@ -39,6 +43,16 @@ export interface SearchInputProps extends BaseInputProps {
39
43
  * Sx prop of the container.
40
44
  */
41
45
  containerSx?: SxProps["sx"];
42
- searchIconBottom?: string;
43
- xIconBottom?: string;
46
+ /**
47
+ * Color of the x icon.
48
+ */
49
+ xColor?: string;
50
+ /**
51
+ * Bottom offset of x icon.
52
+ */
53
+ xBottom?: string;
54
+ /**
55
+ * Container max width.
56
+ */
57
+ maxWidth?: string | string[];
44
58
  }
@@ -7,23 +7,23 @@ export interface BaseComponentProps {
7
7
  /**
8
8
  * The margin property
9
9
  */
10
- m?: string[];
10
+ m?: string | string[];
11
11
  /**
12
12
  * The margin property top
13
13
  */
14
- mt?: string[];
14
+ mt?: string | string[];
15
15
  /**
16
16
  * The margin property right
17
17
  */
18
- mr?: string[];
18
+ mr?: string | string[];
19
19
  /**
20
20
  * The margin property bottom
21
21
  */
22
- mb?: string[];
22
+ mb?: string | string[];
23
23
  /**
24
24
  * The margin property left
25
25
  */
26
- ml?: string[];
26
+ ml?: string | string[];
27
27
  /**
28
28
  * Z-index of the component
29
29
  */
@@ -1,5 +1,5 @@
1
- import { BaseComponentProps } from "../../interfaces";
2
- export interface LinkProps extends BaseComponentProps {
1
+ import { LinkProps as RebassLinkProps } from "rebass";
2
+ export interface LinkProps extends RebassLinkProps {
3
3
  /**
4
4
  * The text of the link
5
5
  */
@@ -18,4 +18,8 @@ export interface LinkProps extends BaseComponentProps {
18
18
  * Color of the text in the link
19
19
  */
20
20
  color?: string;
21
+ /**
22
+ * Whether to block auto-translation for link content.
23
+ */
24
+ dontTranslate?: boolean;
21
25
  }
@@ -1,7 +1,2 @@
1
1
  import { LinkProps } from "../link";
2
- export declare type PrimaryLinkProps = Pick<LinkProps, "href" | "title" | "internal" | "m" | "mt" | "mr" | "mb" | "ml"> & {
3
- /**
4
- * Default value: ["#9E1CB5"] (the same as ["purple"] and ["cl_purple"])
5
- */
6
- color?: LinkProps["color"];
7
- };
2
+ export declare type PrimaryLinkProps = Omit<LinkProps, "variant">;
@@ -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
+ }
@@ -0,0 +1 @@
1
+ export { ToggleSwitch } from "./toggle-switch";
@@ -0,0 +1,4 @@
1
+ export interface ToggleSwitchProps {
2
+ initialState?: boolean;
3
+ onClick?: () => void;
4
+ }
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ import { ToggleSwitchProps as Props } from "./interfaces";
3
+ export declare const ToggleSwitch: React.FC<Props>;
@@ -44,11 +44,11 @@ interface CommonBaseTextProps extends Pick<BaseComponentProps, "m" | "mt" | "mr"
44
44
  /**
45
45
  * Possible letter spacing
46
46
  */
47
- letterSpacing?: Array<string>;
47
+ letterSpacing?: string | string[];
48
48
  /**
49
49
  * Possible line height adjustments
50
50
  */
51
- lineHeight?: Array<string>;
51
+ lineHeight?: string | string[];
52
52
  /**
53
53
  * Possible bg color for the text
54
54
  */
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";
@@ -153,6 +155,7 @@ export { TextSwitch } from "./components/switches/text-switch";
153
155
  export declare type TextSwitchProps = BaseTextSwitchProps;
154
156
  export { CarouselSwitch } from "./components/switches/carousel-switch";
155
157
  export declare type CarouselSwitchProps = BaseCarouselSwitchProps;
158
+ export { ToggleSwitch } from "./components/switches/toggle-switch";
156
159
  export { TabsMenu } from "./components/tabs/tabs-menu";
157
160
  export { TabBar } from "./components/tabs/tab-bar";
158
161
  export { TabbedView } from "./components/tabs/tabbed-view";
@@ -195,6 +198,7 @@ export { ActionsTooltip } from "./components/tooltips/actions-tooltip";
195
198
  export { TooltipWithPointer } from "./components/tooltips/tooltip-with-pointer";
196
199
  export { Footer } from "./components/complex/footer";
197
200
  export { Navbar, getLabShopsUrlProps } from "./components/complex/navbar";
201
+ export { UpdatedNavbar } from "./components/complex/updated-navbar";
198
202
  export { Anchor } from "./components/utils/anchor";
199
203
  export { PageTracker } from "./components/utils/page-tracker";
200
204
  export { ScrollToTop } from "./components/utils/scroll-to-top";