mayak-common-library 0.0.194 → 0.0.196
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 +12 -9
- package/dist/index.d.ts +12 -9
- package/dist/index.js +5 -5
- package/dist/index.mjs +7 -7
- package/messages/en.json +194 -0
- package/messages/ru.json +194 -0
- package/messages/uk.json +193 -0
- package/next.config.mjs +1 -1
- package/package.json +1 -1
- package/styles/assets.ts +3 -6
- package/tailwind.config.js +10 -6
- package/theme.ts +15 -0
- package/dist/chunk-I2QAX2N6.mjs +0 -2
- package/dist/en-UF6XH24R.mjs +0 -2
- package/dist/ru-QYVI77U6.mjs +0 -2
- package/dist/uk-SBSODGEU.mjs +0 -2
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as react from 'react';
|
|
3
|
-
import { FC, ReactNode,
|
|
3
|
+
import { FC, ReactNode, PropsWithChildren, MouseEventHandler, MouseEvent, ReactElement } from 'react';
|
|
4
4
|
import { TypographyProps } from '@mui/material/Typography/Typography';
|
|
5
5
|
import * as zustand from 'zustand';
|
|
6
6
|
import { StateCreator } from 'zustand';
|
|
@@ -12,7 +12,6 @@ import * as _emotion_react from '@emotion/react';
|
|
|
12
12
|
import * as _mui_material_OverridableComponent from '@mui/material/OverridableComponent';
|
|
13
13
|
import * as _mui_material from '@mui/material';
|
|
14
14
|
import { ToggleButtonProps, ToggleButtonGroupProps as ToggleButtonGroupProps$1, PaginationItemOwnProps } from '@mui/material';
|
|
15
|
-
import * as _mui_material_Button_Button from '@mui/material/Button/Button';
|
|
16
15
|
import { UseControllerProps, FieldValues } from 'react-hook-form';
|
|
17
16
|
import { SystemStyleObject } from '@mui/system';
|
|
18
17
|
import { SwitchProps } from '@mui/material/Switch/Switch';
|
|
@@ -595,8 +594,6 @@ declare function TextBlock({ classes, text, title }: ITextBlock): react_jsx_runt
|
|
|
595
594
|
|
|
596
595
|
declare const ThanksBlock: () => react_jsx_runtime.JSX.Element;
|
|
597
596
|
|
|
598
|
-
declare const ThanksBlockWithButton: () => react_jsx_runtime.JSX.Element;
|
|
599
|
-
|
|
600
597
|
type TitlePosition = 'center' | 'left';
|
|
601
598
|
|
|
602
599
|
interface ITitleBlock extends TypographyProps {
|
|
@@ -857,6 +854,12 @@ interface IDeveloperTwoBlocks {
|
|
|
857
854
|
}
|
|
858
855
|
declare function DeveloperTwoBlocks({ classes, block, text, title, }: IDeveloperTwoBlocks): react_jsx_runtime.JSX.Element;
|
|
859
856
|
|
|
857
|
+
interface ImageAndTextBlockProps {
|
|
858
|
+
classes?: string;
|
|
859
|
+
imgSrc?: string;
|
|
860
|
+
}
|
|
861
|
+
declare const ImageAndTextBlock: FC<PropsWithChildren & ImageAndTextBlockProps>;
|
|
862
|
+
|
|
860
863
|
declare const useWindowSize: () => {
|
|
861
864
|
windowSize: number;
|
|
862
865
|
xs: boolean;
|
|
@@ -928,7 +931,7 @@ interface IHeaderProps {
|
|
|
928
931
|
whatsUp?: boolean;
|
|
929
932
|
defLocale: string;
|
|
930
933
|
}
|
|
931
|
-
declare function Header({ menuItems, mainPhone, locales, site, homePage, whatsUp, defLocale }: IHeaderProps): react_jsx_runtime.JSX.Element;
|
|
934
|
+
declare function Header({ menuItems, mainPhone, locales, site, homePage, whatsUp, defLocale, }: IHeaderProps): react_jsx_runtime.JSX.Element;
|
|
932
935
|
|
|
933
936
|
interface HeaderContactButtonProps {
|
|
934
937
|
onClick: MouseEventHandler<HTMLButtonElement> | undefined;
|
|
@@ -1094,7 +1097,7 @@ interface ToggleSortProps {
|
|
|
1094
1097
|
}
|
|
1095
1098
|
declare const ToggleSort: FC<ToggleSortProps>;
|
|
1096
1099
|
|
|
1097
|
-
declare const StyledButton: _emotion_styled.StyledComponent<
|
|
1100
|
+
declare const StyledButton: _emotion_styled.StyledComponent<_mui_material.ButtonOwnProps & Omit<_mui_material.ButtonBaseOwnProps, "classes"> & _mui_material_OverridableComponent.CommonProps & Omit<Omit<react.DetailedHTMLProps<react.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
1098
1101
|
ref?: ((instance: HTMLButtonElement | null) => void | react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | react.RefObject<HTMLButtonElement> | null | undefined;
|
|
1099
1102
|
}, "style" | "className" | "classes" | "action" | "centerRipple" | "children" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "sx" | "tabIndex" | "TouchRippleProps" | "touchRippleRef" | "href" | "color" | "disableElevation" | "disableFocusRipple" | "endIcon" | "fullWidth" | "size" | "startIcon" | "variant"> & {
|
|
1100
1103
|
theme?: _emotion_react.Theme;
|
|
@@ -1108,7 +1111,7 @@ declare const ToggleButton: FC<ToggleButtonProps & {
|
|
|
1108
1111
|
|
|
1109
1112
|
interface ToggleButtonGroupProps extends ToggleButtonGroupProps$1 {
|
|
1110
1113
|
textView?: boolean;
|
|
1111
|
-
flexDirection?:
|
|
1114
|
+
flexDirection?: 'row' | 'col';
|
|
1112
1115
|
onChange: (event: MouseEvent<HTMLElement>, value: any) => void;
|
|
1113
1116
|
value: any;
|
|
1114
1117
|
}
|
|
@@ -1261,7 +1264,7 @@ declare const StyledAccordion: FC<AccordionProps & {
|
|
|
1261
1264
|
declare const StyledAccordionSummary: FC;
|
|
1262
1265
|
declare const StyledAccordionDetails: FC;
|
|
1263
1266
|
|
|
1264
|
-
declare const Paginator: () => react_jsx_runtime.JSX.Element | null;
|
|
1267
|
+
declare const Paginator: (props: any) => react_jsx_runtime.JSX.Element | null;
|
|
1265
1268
|
|
|
1266
1269
|
declare const PaginationItem: FC<PaginationItemOwnProps>;
|
|
1267
1270
|
|
|
@@ -1290,4 +1293,4 @@ declare const H5: FC<HProps>;
|
|
|
1290
1293
|
|
|
1291
1294
|
declare const H6: FC<HProps>;
|
|
1292
1295
|
|
|
1293
|
-
export { AboutCompanyMain, AboutUsFirstBlock, StyledAccordion as Accordion, StyledAccordionDetails as AccordionDetails, StyledAccordionSummary as AccordionSummary, AmenitiesBlock, AnyLevelBlock, AnyQuestionsBlock, AreasFull, AreasSlider, ArticleContent, ArticlesBlock, ArticlesFull, BannerBlock, BannerBlock2, BannerReferralProgram, BecomePartner, BenefitsBlock, BenefitsVacanciesBlock, BlockAboutCareer, BlockChoiceLinkGoToCatalog, BlockContacts, BlockGroupLinks, BlockImages, BlockOurTeam, BlockTabsGroupLinks, Button, ButtonDark, CallConsult, CallMeBlock, CasesBlock, CatalogNewProjects, CatalogRealtiesBlock, CatalogViewSwitch, ClientTransferProcess, ContactDubaiBlock, ContactUsBlock, DeveloperBanner, DeveloperTwoBlocks, Developers, DevelopersSlider, ErrorMessage, ExpertiseBlock, FAQ, FloorPlansBlock, Footer, Footer2, FormBlock, FullScreenImage, GalleryBlock, GalleryRealty, H1, H1Big, H2, H3, H4, H5, H6, Header, _default as HeaderContactButton, HeaderMob, IconButton, Input, JoinTeamBlock, type LayoutStore, LegalSupport, LinkOut, List, ListItem, type LocaleSlug, LocaleSwitch, LocaleSwitchToggle, LogoBlock, LogoBlockWhite, MODAL_COMPONENT, MODAL_COMPONENTS, MODAL_TITLES, Main, type Modal, ObjectInfoBlock, Offices, OfficesBlock, OpenVacancies, OtherVacancies, OurAdvantages, OurServices, Paginator, PaginationItem as PaginatorItem, PaginatorSimple, PaymentPlanBlock, PhoneNumberInput, PopularAreas, Portfolios, ProjectsSlider, ReferralProgramFirstBlock, SearchInput, Select, ServicesTexts, SimpleSelect, SocialBlock, SocialBlockMain, ToggleSort as SortToggle, StyledBadge, StyledBadgeDesc, StyledButton, SubmitSelectButton, Switch, TeamWorkerBlock, TextBlock, TextImageTileBlock, ThanksBlock,
|
|
1296
|
+
export { AboutCompanyMain, AboutUsFirstBlock, StyledAccordion as Accordion, StyledAccordionDetails as AccordionDetails, StyledAccordionSummary as AccordionSummary, AmenitiesBlock, AnyLevelBlock, AnyQuestionsBlock, AreasFull, AreasSlider, ArticleContent, ArticlesBlock, ArticlesFull, BannerBlock, BannerBlock2, BannerReferralProgram, BecomePartner, BenefitsBlock, BenefitsVacanciesBlock, BlockAboutCareer, BlockChoiceLinkGoToCatalog, BlockContacts, BlockGroupLinks, BlockImages, BlockOurTeam, BlockTabsGroupLinks, Button, ButtonDark, CallConsult, CallMeBlock, CasesBlock, CatalogNewProjects, CatalogRealtiesBlock, CatalogViewSwitch, ClientTransferProcess, ContactDubaiBlock, ContactUsBlock, DeveloperBanner, DeveloperTwoBlocks, Developers, DevelopersSlider, ErrorMessage, ExpertiseBlock, FAQ, FloorPlansBlock, Footer, Footer2, FormBlock, FullScreenImage, GalleryBlock, GalleryRealty, H1, H1Big, H2, H3, H4, H5, H6, Header, _default as HeaderContactButton, HeaderMob, IconButton, ImageAndTextBlock, Input, JoinTeamBlock, type LayoutStore, LegalSupport, LinkOut, List, ListItem, type LocaleSlug, LocaleSwitch, LocaleSwitchToggle, LogoBlock, LogoBlockWhite, MODAL_COMPONENT, MODAL_COMPONENTS, MODAL_TITLES, Main, type Modal, ObjectInfoBlock, Offices, OfficesBlock, OpenVacancies, OtherVacancies, OurAdvantages, OurServices, Paginator, PaginationItem as PaginatorItem, PaginatorSimple, PaymentPlanBlock, PhoneNumberInput, PopularAreas, Portfolios, ProjectsSlider, ReferralProgramFirstBlock, SearchInput, Select, ServicesTexts, SimpleSelect, SocialBlock, SocialBlockMain, ToggleSort as SortToggle, StyledBadge, StyledBadgeDesc, StyledButton, SubmitSelectButton, Switch, TeamWorkerBlock, TextBlock, TextImageTileBlock, ThanksBlock, TitleBlock, ToggleButton, ToggleButtonGroup, ToggleButtonsMultiple, ToggleButtonsWithLabel, TopDevelopers, TrustUs, VacancyBoxInfo, VacancyContent, WeOffer, WeTakeFull, WhatIsYour, WhyShouldWork, WhyWe, createLocaleSlugSlice, createModalSlice, hrefSlugPrefix, useLayoutStore, useLocaleSlugStore, useWindowSize };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as react from 'react';
|
|
3
|
-
import { FC, ReactNode,
|
|
3
|
+
import { FC, ReactNode, PropsWithChildren, MouseEventHandler, MouseEvent, ReactElement } from 'react';
|
|
4
4
|
import { TypographyProps } from '@mui/material/Typography/Typography';
|
|
5
5
|
import * as zustand from 'zustand';
|
|
6
6
|
import { StateCreator } from 'zustand';
|
|
@@ -12,7 +12,6 @@ import * as _emotion_react from '@emotion/react';
|
|
|
12
12
|
import * as _mui_material_OverridableComponent from '@mui/material/OverridableComponent';
|
|
13
13
|
import * as _mui_material from '@mui/material';
|
|
14
14
|
import { ToggleButtonProps, ToggleButtonGroupProps as ToggleButtonGroupProps$1, PaginationItemOwnProps } from '@mui/material';
|
|
15
|
-
import * as _mui_material_Button_Button from '@mui/material/Button/Button';
|
|
16
15
|
import { UseControllerProps, FieldValues } from 'react-hook-form';
|
|
17
16
|
import { SystemStyleObject } from '@mui/system';
|
|
18
17
|
import { SwitchProps } from '@mui/material/Switch/Switch';
|
|
@@ -595,8 +594,6 @@ declare function TextBlock({ classes, text, title }: ITextBlock): react_jsx_runt
|
|
|
595
594
|
|
|
596
595
|
declare const ThanksBlock: () => react_jsx_runtime.JSX.Element;
|
|
597
596
|
|
|
598
|
-
declare const ThanksBlockWithButton: () => react_jsx_runtime.JSX.Element;
|
|
599
|
-
|
|
600
597
|
type TitlePosition = 'center' | 'left';
|
|
601
598
|
|
|
602
599
|
interface ITitleBlock extends TypographyProps {
|
|
@@ -857,6 +854,12 @@ interface IDeveloperTwoBlocks {
|
|
|
857
854
|
}
|
|
858
855
|
declare function DeveloperTwoBlocks({ classes, block, text, title, }: IDeveloperTwoBlocks): react_jsx_runtime.JSX.Element;
|
|
859
856
|
|
|
857
|
+
interface ImageAndTextBlockProps {
|
|
858
|
+
classes?: string;
|
|
859
|
+
imgSrc?: string;
|
|
860
|
+
}
|
|
861
|
+
declare const ImageAndTextBlock: FC<PropsWithChildren & ImageAndTextBlockProps>;
|
|
862
|
+
|
|
860
863
|
declare const useWindowSize: () => {
|
|
861
864
|
windowSize: number;
|
|
862
865
|
xs: boolean;
|
|
@@ -928,7 +931,7 @@ interface IHeaderProps {
|
|
|
928
931
|
whatsUp?: boolean;
|
|
929
932
|
defLocale: string;
|
|
930
933
|
}
|
|
931
|
-
declare function Header({ menuItems, mainPhone, locales, site, homePage, whatsUp, defLocale }: IHeaderProps): react_jsx_runtime.JSX.Element;
|
|
934
|
+
declare function Header({ menuItems, mainPhone, locales, site, homePage, whatsUp, defLocale, }: IHeaderProps): react_jsx_runtime.JSX.Element;
|
|
932
935
|
|
|
933
936
|
interface HeaderContactButtonProps {
|
|
934
937
|
onClick: MouseEventHandler<HTMLButtonElement> | undefined;
|
|
@@ -1094,7 +1097,7 @@ interface ToggleSortProps {
|
|
|
1094
1097
|
}
|
|
1095
1098
|
declare const ToggleSort: FC<ToggleSortProps>;
|
|
1096
1099
|
|
|
1097
|
-
declare const StyledButton: _emotion_styled.StyledComponent<
|
|
1100
|
+
declare const StyledButton: _emotion_styled.StyledComponent<_mui_material.ButtonOwnProps & Omit<_mui_material.ButtonBaseOwnProps, "classes"> & _mui_material_OverridableComponent.CommonProps & Omit<Omit<react.DetailedHTMLProps<react.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
1098
1101
|
ref?: ((instance: HTMLButtonElement | null) => void | react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | react.RefObject<HTMLButtonElement> | null | undefined;
|
|
1099
1102
|
}, "style" | "className" | "classes" | "action" | "centerRipple" | "children" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "sx" | "tabIndex" | "TouchRippleProps" | "touchRippleRef" | "href" | "color" | "disableElevation" | "disableFocusRipple" | "endIcon" | "fullWidth" | "size" | "startIcon" | "variant"> & {
|
|
1100
1103
|
theme?: _emotion_react.Theme;
|
|
@@ -1108,7 +1111,7 @@ declare const ToggleButton: FC<ToggleButtonProps & {
|
|
|
1108
1111
|
|
|
1109
1112
|
interface ToggleButtonGroupProps extends ToggleButtonGroupProps$1 {
|
|
1110
1113
|
textView?: boolean;
|
|
1111
|
-
flexDirection?:
|
|
1114
|
+
flexDirection?: 'row' | 'col';
|
|
1112
1115
|
onChange: (event: MouseEvent<HTMLElement>, value: any) => void;
|
|
1113
1116
|
value: any;
|
|
1114
1117
|
}
|
|
@@ -1261,7 +1264,7 @@ declare const StyledAccordion: FC<AccordionProps & {
|
|
|
1261
1264
|
declare const StyledAccordionSummary: FC;
|
|
1262
1265
|
declare const StyledAccordionDetails: FC;
|
|
1263
1266
|
|
|
1264
|
-
declare const Paginator: () => react_jsx_runtime.JSX.Element | null;
|
|
1267
|
+
declare const Paginator: (props: any) => react_jsx_runtime.JSX.Element | null;
|
|
1265
1268
|
|
|
1266
1269
|
declare const PaginationItem: FC<PaginationItemOwnProps>;
|
|
1267
1270
|
|
|
@@ -1290,4 +1293,4 @@ declare const H5: FC<HProps>;
|
|
|
1290
1293
|
|
|
1291
1294
|
declare const H6: FC<HProps>;
|
|
1292
1295
|
|
|
1293
|
-
export { AboutCompanyMain, AboutUsFirstBlock, StyledAccordion as Accordion, StyledAccordionDetails as AccordionDetails, StyledAccordionSummary as AccordionSummary, AmenitiesBlock, AnyLevelBlock, AnyQuestionsBlock, AreasFull, AreasSlider, ArticleContent, ArticlesBlock, ArticlesFull, BannerBlock, BannerBlock2, BannerReferralProgram, BecomePartner, BenefitsBlock, BenefitsVacanciesBlock, BlockAboutCareer, BlockChoiceLinkGoToCatalog, BlockContacts, BlockGroupLinks, BlockImages, BlockOurTeam, BlockTabsGroupLinks, Button, ButtonDark, CallConsult, CallMeBlock, CasesBlock, CatalogNewProjects, CatalogRealtiesBlock, CatalogViewSwitch, ClientTransferProcess, ContactDubaiBlock, ContactUsBlock, DeveloperBanner, DeveloperTwoBlocks, Developers, DevelopersSlider, ErrorMessage, ExpertiseBlock, FAQ, FloorPlansBlock, Footer, Footer2, FormBlock, FullScreenImage, GalleryBlock, GalleryRealty, H1, H1Big, H2, H3, H4, H5, H6, Header, _default as HeaderContactButton, HeaderMob, IconButton, Input, JoinTeamBlock, type LayoutStore, LegalSupport, LinkOut, List, ListItem, type LocaleSlug, LocaleSwitch, LocaleSwitchToggle, LogoBlock, LogoBlockWhite, MODAL_COMPONENT, MODAL_COMPONENTS, MODAL_TITLES, Main, type Modal, ObjectInfoBlock, Offices, OfficesBlock, OpenVacancies, OtherVacancies, OurAdvantages, OurServices, Paginator, PaginationItem as PaginatorItem, PaginatorSimple, PaymentPlanBlock, PhoneNumberInput, PopularAreas, Portfolios, ProjectsSlider, ReferralProgramFirstBlock, SearchInput, Select, ServicesTexts, SimpleSelect, SocialBlock, SocialBlockMain, ToggleSort as SortToggle, StyledBadge, StyledBadgeDesc, StyledButton, SubmitSelectButton, Switch, TeamWorkerBlock, TextBlock, TextImageTileBlock, ThanksBlock,
|
|
1296
|
+
export { AboutCompanyMain, AboutUsFirstBlock, StyledAccordion as Accordion, StyledAccordionDetails as AccordionDetails, StyledAccordionSummary as AccordionSummary, AmenitiesBlock, AnyLevelBlock, AnyQuestionsBlock, AreasFull, AreasSlider, ArticleContent, ArticlesBlock, ArticlesFull, BannerBlock, BannerBlock2, BannerReferralProgram, BecomePartner, BenefitsBlock, BenefitsVacanciesBlock, BlockAboutCareer, BlockChoiceLinkGoToCatalog, BlockContacts, BlockGroupLinks, BlockImages, BlockOurTeam, BlockTabsGroupLinks, Button, ButtonDark, CallConsult, CallMeBlock, CasesBlock, CatalogNewProjects, CatalogRealtiesBlock, CatalogViewSwitch, ClientTransferProcess, ContactDubaiBlock, ContactUsBlock, DeveloperBanner, DeveloperTwoBlocks, Developers, DevelopersSlider, ErrorMessage, ExpertiseBlock, FAQ, FloorPlansBlock, Footer, Footer2, FormBlock, FullScreenImage, GalleryBlock, GalleryRealty, H1, H1Big, H2, H3, H4, H5, H6, Header, _default as HeaderContactButton, HeaderMob, IconButton, ImageAndTextBlock, Input, JoinTeamBlock, type LayoutStore, LegalSupport, LinkOut, List, ListItem, type LocaleSlug, LocaleSwitch, LocaleSwitchToggle, LogoBlock, LogoBlockWhite, MODAL_COMPONENT, MODAL_COMPONENTS, MODAL_TITLES, Main, type Modal, ObjectInfoBlock, Offices, OfficesBlock, OpenVacancies, OtherVacancies, OurAdvantages, OurServices, Paginator, PaginationItem as PaginatorItem, PaginatorSimple, PaymentPlanBlock, PhoneNumberInput, PopularAreas, Portfolios, ProjectsSlider, ReferralProgramFirstBlock, SearchInput, Select, ServicesTexts, SimpleSelect, SocialBlock, SocialBlockMain, ToggleSort as SortToggle, StyledBadge, StyledBadgeDesc, StyledButton, SubmitSelectButton, Switch, TeamWorkerBlock, TextBlock, TextImageTileBlock, ThanksBlock, TitleBlock, ToggleButton, ToggleButtonGroup, ToggleButtonsMultiple, ToggleButtonsWithLabel, TopDevelopers, TrustUs, VacancyBoxInfo, VacancyContent, WeOffer, WeTakeFull, WhatIsYour, WhyShouldWork, WhyWe, createLocaleSlugSlice, createModalSlice, hrefSlugPrefix, useLayoutStore, useLocaleSlugStore, useWindowSize };
|