mayak-common-library 0.0.200 → 0.0.202
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 +40 -30
- package/dist/index.d.ts +40 -30
- package/dist/index.js +8 -8
- package/dist/index.mjs +6 -6
- package/package.json +3 -2
- package/styles/common.scss +3 -3
- package/styles/globals.scss +6 -0
package/dist/index.d.mts
CHANGED
|
@@ -21,6 +21,28 @@ import { AccordionProps } from '@mui/material/Accordion/Accordion';
|
|
|
21
21
|
import { OptionsType } from '@fancyapps/ui/types/Fancybox/options';
|
|
22
22
|
import { KeenSliderOptions } from 'keen-slider/react';
|
|
23
23
|
|
|
24
|
+
type SelectChildrenProps = {
|
|
25
|
+
ref?: any;
|
|
26
|
+
onClick?: any;
|
|
27
|
+
onClose?: any;
|
|
28
|
+
collapse?: any;
|
|
29
|
+
collapseParent?: any;
|
|
30
|
+
};
|
|
31
|
+
type LanguageSlugsType = {
|
|
32
|
+
[key: string]: string;
|
|
33
|
+
};
|
|
34
|
+
type localesProps = {
|
|
35
|
+
label: string;
|
|
36
|
+
locale: string;
|
|
37
|
+
}[];
|
|
38
|
+
interface LocaleSwitcherProps {
|
|
39
|
+
locales: localesProps;
|
|
40
|
+
homePage: string;
|
|
41
|
+
defLocale: string;
|
|
42
|
+
}
|
|
43
|
+
type Site = 'kyiv' | 'dubai';
|
|
44
|
+
type TitlePosition$1 = 'center' | 'left';
|
|
45
|
+
|
|
24
46
|
interface IWorker$1 {
|
|
25
47
|
imageUrl?: string;
|
|
26
48
|
description?: string;
|
|
@@ -52,8 +74,9 @@ interface IAboutCompanyMain {
|
|
|
52
74
|
box?: IBoxItem$6[];
|
|
53
75
|
workerCeo?: IWorker$1;
|
|
54
76
|
classes?: string;
|
|
77
|
+
site?: Site;
|
|
55
78
|
}
|
|
56
|
-
declare function AboutCompanyMain({ title, text1, text2, box, workerCeo, classes, }: IAboutCompanyMain): react_jsx_runtime.JSX.Element;
|
|
79
|
+
declare function AboutCompanyMain({ title, text1, text2, box, workerCeo, classes, site, }: IAboutCompanyMain): react_jsx_runtime.JSX.Element;
|
|
57
80
|
|
|
58
81
|
interface IBox {
|
|
59
82
|
title?: string;
|
|
@@ -101,30 +124,12 @@ declare function AnyLevelBlock({ block1, block2, classes, }: IAnyLevelBlock): re
|
|
|
101
124
|
interface IAnyQuestionsBlock {
|
|
102
125
|
worker?: IWorker$1;
|
|
103
126
|
classes?: string;
|
|
127
|
+
title?: string;
|
|
128
|
+
formatPhone: string;
|
|
129
|
+
placeholderPhone: string;
|
|
130
|
+
codePhone: string;
|
|
104
131
|
}
|
|
105
|
-
declare function AnyQuestionsBlock({ worker, classes, }: IAnyQuestionsBlock): react_jsx_runtime.JSX.Element;
|
|
106
|
-
|
|
107
|
-
type SelectChildrenProps = {
|
|
108
|
-
ref?: any;
|
|
109
|
-
onClick?: any;
|
|
110
|
-
onClose?: any;
|
|
111
|
-
collapse?: any;
|
|
112
|
-
collapseParent?: any;
|
|
113
|
-
};
|
|
114
|
-
type LanguageSlugsType = {
|
|
115
|
-
[key: string]: string;
|
|
116
|
-
};
|
|
117
|
-
type localesProps = {
|
|
118
|
-
label: string;
|
|
119
|
-
locale: string;
|
|
120
|
-
}[];
|
|
121
|
-
interface LocaleSwitcherProps {
|
|
122
|
-
locales: localesProps;
|
|
123
|
-
homePage: string;
|
|
124
|
-
defLocale: string;
|
|
125
|
-
}
|
|
126
|
-
type Site = 'kyiv' | 'dubai';
|
|
127
|
-
type TitlePosition$1 = 'center' | 'left';
|
|
132
|
+
declare function AnyQuestionsBlock({ worker, classes, title, formatPhone, placeholderPhone, codePhone, }: IAnyQuestionsBlock): react_jsx_runtime.JSX.Element;
|
|
128
133
|
|
|
129
134
|
interface IArticleContent {
|
|
130
135
|
title?: string;
|
|
@@ -167,8 +172,9 @@ interface IBannerBlock {
|
|
|
167
172
|
bigText?: string;
|
|
168
173
|
smallText?: string;
|
|
169
174
|
classes?: string;
|
|
175
|
+
imgLink?: string;
|
|
170
176
|
}
|
|
171
|
-
declare function BannerBlock({ bigText, smallText, classes, videoLink, }: IBannerBlock): react_jsx_runtime.JSX.Element;
|
|
177
|
+
declare function BannerBlock({ bigText, smallText, classes, videoLink, imgLink, }: IBannerBlock): react_jsx_runtime.JSX.Element;
|
|
172
178
|
|
|
173
179
|
interface IBannerBlock2 {
|
|
174
180
|
image_url?: string;
|
|
@@ -862,13 +868,14 @@ interface ImageAndTextBlockProps {
|
|
|
862
868
|
}
|
|
863
869
|
declare const ImageAndTextBlock: FC<PropsWithChildren & ImageAndTextBlockProps>;
|
|
864
870
|
|
|
865
|
-
declare
|
|
871
|
+
declare function useWindowSize(): {
|
|
866
872
|
windowSize: number;
|
|
873
|
+
xxs: boolean;
|
|
867
874
|
xs: boolean;
|
|
875
|
+
sm: boolean;
|
|
868
876
|
md: boolean;
|
|
869
877
|
lg: boolean;
|
|
870
878
|
xl: boolean;
|
|
871
|
-
sm: boolean;
|
|
872
879
|
loading: boolean;
|
|
873
880
|
};
|
|
874
881
|
|
|
@@ -900,9 +907,11 @@ interface ModalSlice {
|
|
|
900
907
|
openModal: boolean;
|
|
901
908
|
typeModal?: MODAL_COMPONENT;
|
|
902
909
|
dataModal?: any;
|
|
910
|
+
additionalCloseBtn?: boolean;
|
|
911
|
+
bgColor?: 'gold' | 'white';
|
|
903
912
|
}
|
|
904
913
|
interface ModalActions {
|
|
905
|
-
showModal: (type: MODAL_COMPONENT, data?: any) => void;
|
|
914
|
+
showModal: (type: MODAL_COMPONENT, data?: any, additionalCloseBtn?: boolean, bgColor?: 'gold' | 'white') => void;
|
|
906
915
|
hideModal: () => void;
|
|
907
916
|
}
|
|
908
917
|
type Modal = ModalSlice & ModalActions;
|
|
@@ -990,7 +999,7 @@ interface ButtonDarkProps {
|
|
|
990
999
|
declare const ButtonDark: FC<ButtonDarkProps & LoadingButtonProps>;
|
|
991
1000
|
|
|
992
1001
|
interface CustomIconButtonProps extends IconButtonProps, PropsWithChildren {
|
|
993
|
-
|
|
1002
|
+
isblack?: string;
|
|
994
1003
|
}
|
|
995
1004
|
declare const IconButton: FC<CustomIconButtonProps>;
|
|
996
1005
|
|
|
@@ -1101,7 +1110,7 @@ declare const ToggleSort: FC<ToggleSortProps>;
|
|
|
1101
1110
|
|
|
1102
1111
|
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"> & {
|
|
1103
1112
|
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;
|
|
1104
|
-
}, "style" | "
|
|
1113
|
+
}, "style" | "children" | "className" | "tabIndex" | "color" | "href" | "sx" | "disabled" | "action" | "size" | "classes" | "variant" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableElevation" | "disableFocusRipple" | "endIcon" | "fullWidth" | "startIcon"> & {
|
|
1105
1114
|
theme?: _emotion_react.Theme;
|
|
1106
1115
|
}, {}, {}>;
|
|
1107
1116
|
|
|
@@ -1290,6 +1299,7 @@ interface HProps extends PropsWithChildren {
|
|
|
1290
1299
|
className?: string;
|
|
1291
1300
|
smallerXs?: boolean;
|
|
1292
1301
|
leftXs?: boolean;
|
|
1302
|
+
bold?: boolean;
|
|
1293
1303
|
}
|
|
1294
1304
|
|
|
1295
1305
|
declare const H1: FC<HProps>;
|
package/dist/index.d.ts
CHANGED
|
@@ -21,6 +21,28 @@ import { AccordionProps } from '@mui/material/Accordion/Accordion';
|
|
|
21
21
|
import { OptionsType } from '@fancyapps/ui/types/Fancybox/options';
|
|
22
22
|
import { KeenSliderOptions } from 'keen-slider/react';
|
|
23
23
|
|
|
24
|
+
type SelectChildrenProps = {
|
|
25
|
+
ref?: any;
|
|
26
|
+
onClick?: any;
|
|
27
|
+
onClose?: any;
|
|
28
|
+
collapse?: any;
|
|
29
|
+
collapseParent?: any;
|
|
30
|
+
};
|
|
31
|
+
type LanguageSlugsType = {
|
|
32
|
+
[key: string]: string;
|
|
33
|
+
};
|
|
34
|
+
type localesProps = {
|
|
35
|
+
label: string;
|
|
36
|
+
locale: string;
|
|
37
|
+
}[];
|
|
38
|
+
interface LocaleSwitcherProps {
|
|
39
|
+
locales: localesProps;
|
|
40
|
+
homePage: string;
|
|
41
|
+
defLocale: string;
|
|
42
|
+
}
|
|
43
|
+
type Site = 'kyiv' | 'dubai';
|
|
44
|
+
type TitlePosition$1 = 'center' | 'left';
|
|
45
|
+
|
|
24
46
|
interface IWorker$1 {
|
|
25
47
|
imageUrl?: string;
|
|
26
48
|
description?: string;
|
|
@@ -52,8 +74,9 @@ interface IAboutCompanyMain {
|
|
|
52
74
|
box?: IBoxItem$6[];
|
|
53
75
|
workerCeo?: IWorker$1;
|
|
54
76
|
classes?: string;
|
|
77
|
+
site?: Site;
|
|
55
78
|
}
|
|
56
|
-
declare function AboutCompanyMain({ title, text1, text2, box, workerCeo, classes, }: IAboutCompanyMain): react_jsx_runtime.JSX.Element;
|
|
79
|
+
declare function AboutCompanyMain({ title, text1, text2, box, workerCeo, classes, site, }: IAboutCompanyMain): react_jsx_runtime.JSX.Element;
|
|
57
80
|
|
|
58
81
|
interface IBox {
|
|
59
82
|
title?: string;
|
|
@@ -101,30 +124,12 @@ declare function AnyLevelBlock({ block1, block2, classes, }: IAnyLevelBlock): re
|
|
|
101
124
|
interface IAnyQuestionsBlock {
|
|
102
125
|
worker?: IWorker$1;
|
|
103
126
|
classes?: string;
|
|
127
|
+
title?: string;
|
|
128
|
+
formatPhone: string;
|
|
129
|
+
placeholderPhone: string;
|
|
130
|
+
codePhone: string;
|
|
104
131
|
}
|
|
105
|
-
declare function AnyQuestionsBlock({ worker, classes, }: IAnyQuestionsBlock): react_jsx_runtime.JSX.Element;
|
|
106
|
-
|
|
107
|
-
type SelectChildrenProps = {
|
|
108
|
-
ref?: any;
|
|
109
|
-
onClick?: any;
|
|
110
|
-
onClose?: any;
|
|
111
|
-
collapse?: any;
|
|
112
|
-
collapseParent?: any;
|
|
113
|
-
};
|
|
114
|
-
type LanguageSlugsType = {
|
|
115
|
-
[key: string]: string;
|
|
116
|
-
};
|
|
117
|
-
type localesProps = {
|
|
118
|
-
label: string;
|
|
119
|
-
locale: string;
|
|
120
|
-
}[];
|
|
121
|
-
interface LocaleSwitcherProps {
|
|
122
|
-
locales: localesProps;
|
|
123
|
-
homePage: string;
|
|
124
|
-
defLocale: string;
|
|
125
|
-
}
|
|
126
|
-
type Site = 'kyiv' | 'dubai';
|
|
127
|
-
type TitlePosition$1 = 'center' | 'left';
|
|
132
|
+
declare function AnyQuestionsBlock({ worker, classes, title, formatPhone, placeholderPhone, codePhone, }: IAnyQuestionsBlock): react_jsx_runtime.JSX.Element;
|
|
128
133
|
|
|
129
134
|
interface IArticleContent {
|
|
130
135
|
title?: string;
|
|
@@ -167,8 +172,9 @@ interface IBannerBlock {
|
|
|
167
172
|
bigText?: string;
|
|
168
173
|
smallText?: string;
|
|
169
174
|
classes?: string;
|
|
175
|
+
imgLink?: string;
|
|
170
176
|
}
|
|
171
|
-
declare function BannerBlock({ bigText, smallText, classes, videoLink, }: IBannerBlock): react_jsx_runtime.JSX.Element;
|
|
177
|
+
declare function BannerBlock({ bigText, smallText, classes, videoLink, imgLink, }: IBannerBlock): react_jsx_runtime.JSX.Element;
|
|
172
178
|
|
|
173
179
|
interface IBannerBlock2 {
|
|
174
180
|
image_url?: string;
|
|
@@ -862,13 +868,14 @@ interface ImageAndTextBlockProps {
|
|
|
862
868
|
}
|
|
863
869
|
declare const ImageAndTextBlock: FC<PropsWithChildren & ImageAndTextBlockProps>;
|
|
864
870
|
|
|
865
|
-
declare
|
|
871
|
+
declare function useWindowSize(): {
|
|
866
872
|
windowSize: number;
|
|
873
|
+
xxs: boolean;
|
|
867
874
|
xs: boolean;
|
|
875
|
+
sm: boolean;
|
|
868
876
|
md: boolean;
|
|
869
877
|
lg: boolean;
|
|
870
878
|
xl: boolean;
|
|
871
|
-
sm: boolean;
|
|
872
879
|
loading: boolean;
|
|
873
880
|
};
|
|
874
881
|
|
|
@@ -900,9 +907,11 @@ interface ModalSlice {
|
|
|
900
907
|
openModal: boolean;
|
|
901
908
|
typeModal?: MODAL_COMPONENT;
|
|
902
909
|
dataModal?: any;
|
|
910
|
+
additionalCloseBtn?: boolean;
|
|
911
|
+
bgColor?: 'gold' | 'white';
|
|
903
912
|
}
|
|
904
913
|
interface ModalActions {
|
|
905
|
-
showModal: (type: MODAL_COMPONENT, data?: any) => void;
|
|
914
|
+
showModal: (type: MODAL_COMPONENT, data?: any, additionalCloseBtn?: boolean, bgColor?: 'gold' | 'white') => void;
|
|
906
915
|
hideModal: () => void;
|
|
907
916
|
}
|
|
908
917
|
type Modal = ModalSlice & ModalActions;
|
|
@@ -990,7 +999,7 @@ interface ButtonDarkProps {
|
|
|
990
999
|
declare const ButtonDark: FC<ButtonDarkProps & LoadingButtonProps>;
|
|
991
1000
|
|
|
992
1001
|
interface CustomIconButtonProps extends IconButtonProps, PropsWithChildren {
|
|
993
|
-
|
|
1002
|
+
isblack?: string;
|
|
994
1003
|
}
|
|
995
1004
|
declare const IconButton: FC<CustomIconButtonProps>;
|
|
996
1005
|
|
|
@@ -1101,7 +1110,7 @@ declare const ToggleSort: FC<ToggleSortProps>;
|
|
|
1101
1110
|
|
|
1102
1111
|
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"> & {
|
|
1103
1112
|
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;
|
|
1104
|
-
}, "style" | "
|
|
1113
|
+
}, "style" | "children" | "className" | "tabIndex" | "color" | "href" | "sx" | "disabled" | "action" | "size" | "classes" | "variant" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableElevation" | "disableFocusRipple" | "endIcon" | "fullWidth" | "startIcon"> & {
|
|
1105
1114
|
theme?: _emotion_react.Theme;
|
|
1106
1115
|
}, {}, {}>;
|
|
1107
1116
|
|
|
@@ -1290,6 +1299,7 @@ interface HProps extends PropsWithChildren {
|
|
|
1290
1299
|
className?: string;
|
|
1291
1300
|
smallerXs?: boolean;
|
|
1292
1301
|
leftXs?: boolean;
|
|
1302
|
+
bold?: boolean;
|
|
1293
1303
|
}
|
|
1294
1304
|
|
|
1295
1305
|
declare const H1: FC<HProps>;
|