mayak-common-library 0.0.227 → 0.0.229

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/dist/index.d.mts CHANGED
@@ -41,7 +41,7 @@ interface LocaleSwitcherProps {
41
41
  defLocale: string;
42
42
  }
43
43
  type Site = 'kyiv' | 'dubai';
44
- type TitlePosition$1 = 'center' | 'left';
44
+ type TitlePosition = 'center' | 'left';
45
45
 
46
46
  interface IWorker$1 {
47
47
  imageUrl?: string;
@@ -154,7 +154,7 @@ interface IArticlesBlock {
154
154
  title: string;
155
155
  classes?: string;
156
156
  button?: boolean;
157
- titlePosition?: TitlePosition$1;
157
+ titlePosition?: TitlePosition;
158
158
  articles?: IArticle[];
159
159
  href: string;
160
160
  }
@@ -607,11 +607,9 @@ declare function TextBlock({ classes, text, title }: ITextBlock): react_jsx_runt
607
607
 
608
608
  declare const ThanksBlock: () => react_jsx_runtime.JSX.Element;
609
609
 
610
- type TitlePosition = 'center' | 'left';
611
-
612
610
  interface ITitleBlock extends TypographyProps {
613
611
  title: string;
614
- titlePosition?: TitlePosition;
612
+ titlePosition?: 'center' | 'left';
615
613
  classes?: string;
616
614
  }
617
615
  declare function TitleBlock(props: ITitleBlock): react_jsx_runtime.JSX.Element;
@@ -967,9 +965,8 @@ interface IHeaderProps {
967
965
  homePage: string;
968
966
  whatsUp?: boolean;
969
967
  defLocale: string;
970
- actionComponent?: ReactNode;
971
968
  }
972
- declare function Header({ menuItems, mainPhone, locales, site, homePage, whatsUp, defLocale, actionComponent, }: IHeaderProps): react_jsx_runtime.JSX.Element;
969
+ declare function Header({ menuItems, mainPhone, locales, site, homePage, whatsUp, defLocale, children, }: IHeaderProps & PropsWithChildren): react_jsx_runtime.JSX.Element;
973
970
 
974
971
  interface HeaderContactButtonProps {
975
972
  onClick: MouseEventHandler<HTMLButtonElement> | undefined;
@@ -999,7 +996,7 @@ interface IFooter2 {
999
996
  }
1000
997
  declare function Footer2({ instagram, facebook, youtube, linkedIn, menuItems, mainPhone, site, homePage, additionalMenu, }: IFooter2): react_jsx_runtime.JSX.Element;
1001
998
 
1002
- declare function HeaderMob({ menuItems, mainPhone, locales, site, homePage, actionComponent, }: IHeaderProps): react_jsx_runtime.JSX.Element;
999
+ declare function HeaderMob({ menuItems, mainPhone, locales, site, homePage, children, }: IHeaderProps & PropsWithChildren): react_jsx_runtime.JSX.Element;
1003
1000
 
1004
1001
  interface IMainBoxProps {
1005
1002
  children: ReactNode;
package/dist/index.d.ts CHANGED
@@ -41,7 +41,7 @@ interface LocaleSwitcherProps {
41
41
  defLocale: string;
42
42
  }
43
43
  type Site = 'kyiv' | 'dubai';
44
- type TitlePosition$1 = 'center' | 'left';
44
+ type TitlePosition = 'center' | 'left';
45
45
 
46
46
  interface IWorker$1 {
47
47
  imageUrl?: string;
@@ -154,7 +154,7 @@ interface IArticlesBlock {
154
154
  title: string;
155
155
  classes?: string;
156
156
  button?: boolean;
157
- titlePosition?: TitlePosition$1;
157
+ titlePosition?: TitlePosition;
158
158
  articles?: IArticle[];
159
159
  href: string;
160
160
  }
@@ -607,11 +607,9 @@ declare function TextBlock({ classes, text, title }: ITextBlock): react_jsx_runt
607
607
 
608
608
  declare const ThanksBlock: () => react_jsx_runtime.JSX.Element;
609
609
 
610
- type TitlePosition = 'center' | 'left';
611
-
612
610
  interface ITitleBlock extends TypographyProps {
613
611
  title: string;
614
- titlePosition?: TitlePosition;
612
+ titlePosition?: 'center' | 'left';
615
613
  classes?: string;
616
614
  }
617
615
  declare function TitleBlock(props: ITitleBlock): react_jsx_runtime.JSX.Element;
@@ -967,9 +965,8 @@ interface IHeaderProps {
967
965
  homePage: string;
968
966
  whatsUp?: boolean;
969
967
  defLocale: string;
970
- actionComponent?: ReactNode;
971
968
  }
972
- declare function Header({ menuItems, mainPhone, locales, site, homePage, whatsUp, defLocale, actionComponent, }: IHeaderProps): react_jsx_runtime.JSX.Element;
969
+ declare function Header({ menuItems, mainPhone, locales, site, homePage, whatsUp, defLocale, children, }: IHeaderProps & PropsWithChildren): react_jsx_runtime.JSX.Element;
973
970
 
974
971
  interface HeaderContactButtonProps {
975
972
  onClick: MouseEventHandler<HTMLButtonElement> | undefined;
@@ -999,7 +996,7 @@ interface IFooter2 {
999
996
  }
1000
997
  declare function Footer2({ instagram, facebook, youtube, linkedIn, menuItems, mainPhone, site, homePage, additionalMenu, }: IFooter2): react_jsx_runtime.JSX.Element;
1001
998
 
1002
- declare function HeaderMob({ menuItems, mainPhone, locales, site, homePage, actionComponent, }: IHeaderProps): react_jsx_runtime.JSX.Element;
999
+ declare function HeaderMob({ menuItems, mainPhone, locales, site, homePage, children, }: IHeaderProps & PropsWithChildren): react_jsx_runtime.JSX.Element;
1003
1000
 
1004
1001
  interface IMainBoxProps {
1005
1002
  children: ReactNode;