mayak-common-library 0.1.42 → 0.1.44
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 +24 -16
- package/dist/index.d.ts +24 -16
- package/dist/index.js +4 -4
- package/dist/index.mjs +4 -4
- package/i18n/routing.ts +1 -1
- package/package.json +33 -38
package/dist/index.d.mts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as react from 'react';
|
|
3
|
-
import { ReactNode, FC, PropsWithChildren, MouseEventHandler, ReactElement,
|
|
4
|
-
import { Document } from '@contentful/rich-text-types
|
|
5
|
-
import { Document as Document$1 } from '@contentful/rich-text-types';
|
|
3
|
+
import { ReactNode, FC, PropsWithChildren, MouseEventHandler, ReactElement, MouseEvent, ButtonHTMLAttributes, DetailedHTMLProps, InputHTMLAttributes, TextareaHTMLAttributes } from 'react';
|
|
4
|
+
import { Document } from '@contentful/rich-text-types';
|
|
6
5
|
import * as zustand from 'zustand';
|
|
7
6
|
import { StateCreator } from 'zustand';
|
|
8
7
|
import { CheckboxProps } from '@mui/material/Checkbox';
|
|
@@ -11,7 +10,7 @@ import { FormControlLabelProps, SwitchProps, ListProps, IconButtonProps, ToggleB
|
|
|
11
10
|
import { UseControllerProps } from 'react-hook-form';
|
|
12
11
|
import { CountryIso2 } from 'react-international-phone';
|
|
13
12
|
import { AccordionProps } from '@mui/material/Accordion';
|
|
14
|
-
import {
|
|
13
|
+
import { FancyboxOptions } from '@fancyapps/ui';
|
|
15
14
|
import { KeenSliderOptions } from 'keen-slider/react';
|
|
16
15
|
import * as _emotion_styled from '@emotion/styled';
|
|
17
16
|
import * as _mui_system from '@mui/system';
|
|
@@ -651,7 +650,7 @@ declare const VacancyInfoItems: FC<VacancyInfoItemsProps>;
|
|
|
651
650
|
|
|
652
651
|
interface IVacancyContent {
|
|
653
652
|
title?: string;
|
|
654
|
-
description?: Document
|
|
653
|
+
description?: Document;
|
|
655
654
|
date?: string;
|
|
656
655
|
salary?: string;
|
|
657
656
|
location?: string;
|
|
@@ -702,7 +701,7 @@ declare function WhatIsYour({ className, text3, text2, text1, title, }: IWhatIsY
|
|
|
702
701
|
interface TextImageTileBlockProps {
|
|
703
702
|
className?: string;
|
|
704
703
|
title?: string | null;
|
|
705
|
-
text?: Document
|
|
704
|
+
text?: Document | string | null;
|
|
706
705
|
image?: string;
|
|
707
706
|
actionComponent?: ReactNode;
|
|
708
707
|
turn?: 'right' | 'left';
|
|
@@ -1114,12 +1113,21 @@ interface CustomCheckboxProps {
|
|
|
1114
1113
|
}
|
|
1115
1114
|
declare const Checkbox: FC<CustomCheckboxProps>;
|
|
1116
1115
|
|
|
1116
|
+
interface SelectChildProps {
|
|
1117
|
+
collapseParent?: () => void;
|
|
1118
|
+
}
|
|
1119
|
+
interface ClickComponentProps {
|
|
1120
|
+
onClick?: (e: MouseEvent<HTMLElement>) => void;
|
|
1121
|
+
onClose?: () => void;
|
|
1122
|
+
collapse?: string;
|
|
1123
|
+
ref?: any;
|
|
1124
|
+
}
|
|
1117
1125
|
interface SelectProProps$1 {
|
|
1118
1126
|
placeholder?: string;
|
|
1119
1127
|
childTitle?: string;
|
|
1120
|
-
clickComponent?: ReactElement
|
|
1128
|
+
clickComponent?: ReactElement<ClickComponentProps>;
|
|
1121
1129
|
btnStartIcon?: ReactElement;
|
|
1122
|
-
actionsComponent?: ReactElement
|
|
1130
|
+
actionsComponent?: ReactElement<SelectChildProps>;
|
|
1123
1131
|
intermediateChild?: ReactElement;
|
|
1124
1132
|
startIcon?: ReactElement;
|
|
1125
1133
|
disableCloseButton?: boolean;
|
|
@@ -1141,7 +1149,7 @@ interface SelectProProps$1 {
|
|
|
1141
1149
|
openOnHover?: boolean;
|
|
1142
1150
|
smallDropdown?: boolean;
|
|
1143
1151
|
}
|
|
1144
|
-
declare const Select:
|
|
1152
|
+
declare const Select: (props: PropsWithChildren<SelectProProps$1>) => react_jsx_runtime.JSX.Element;
|
|
1145
1153
|
|
|
1146
1154
|
interface SelectProProps {
|
|
1147
1155
|
placeholder?: string;
|
|
@@ -1151,14 +1159,14 @@ interface SelectProProps {
|
|
|
1151
1159
|
upperCase?: boolean;
|
|
1152
1160
|
bold?: boolean;
|
|
1153
1161
|
}
|
|
1154
|
-
declare const SimpleSelect:
|
|
1162
|
+
declare const SimpleSelect: ({ children, placeholder, fullContainerWidth, overButton, small, upperCase, bold, }: PropsWithChildren<SelectProProps>) => react_jsx_runtime.JSX.Element;
|
|
1155
1163
|
|
|
1156
|
-
|
|
1157
|
-
collapseParent?:
|
|
1164
|
+
type SelectContentProps = PropsWithChildren<{
|
|
1165
|
+
collapseParent?: () => void;
|
|
1158
1166
|
currentValue?: string;
|
|
1159
1167
|
onChange?: (value?: string, tag?: string) => void;
|
|
1160
|
-
}
|
|
1161
|
-
declare const SelectContent: (props: SelectContentProps
|
|
1168
|
+
}>;
|
|
1169
|
+
declare const SelectContent: (props: SelectContentProps) => react_jsx_runtime.JSX.Element;
|
|
1162
1170
|
|
|
1163
1171
|
type outLinkType = 'viber' | 'telegram' | 'tel' | 'googleMaps' | 'mail' | 'link' | 'whatsapp';
|
|
1164
1172
|
|
|
@@ -1510,13 +1518,13 @@ declare const H5: FC<HProps>;
|
|
|
1510
1518
|
declare const H6: FC<HProps>;
|
|
1511
1519
|
|
|
1512
1520
|
interface RichTextBlockProps {
|
|
1513
|
-
body: Document
|
|
1521
|
+
body: Document | null | any;
|
|
1514
1522
|
className?: string;
|
|
1515
1523
|
}
|
|
1516
1524
|
declare const RichTextBlock: FC<RichTextBlockProps>;
|
|
1517
1525
|
|
|
1518
1526
|
interface FancyBoxProps {
|
|
1519
|
-
options?: Partial<
|
|
1527
|
+
options?: Partial<FancyboxOptions>;
|
|
1520
1528
|
delegate?: string;
|
|
1521
1529
|
}
|
|
1522
1530
|
declare const FancyBox: FC<PropsWithChildren<FancyBoxProps>>;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as react from 'react';
|
|
3
|
-
import { ReactNode, FC, PropsWithChildren, MouseEventHandler, ReactElement,
|
|
4
|
-
import { Document } from '@contentful/rich-text-types
|
|
5
|
-
import { Document as Document$1 } from '@contentful/rich-text-types';
|
|
3
|
+
import { ReactNode, FC, PropsWithChildren, MouseEventHandler, ReactElement, MouseEvent, ButtonHTMLAttributes, DetailedHTMLProps, InputHTMLAttributes, TextareaHTMLAttributes } from 'react';
|
|
4
|
+
import { Document } from '@contentful/rich-text-types';
|
|
6
5
|
import * as zustand from 'zustand';
|
|
7
6
|
import { StateCreator } from 'zustand';
|
|
8
7
|
import { CheckboxProps } from '@mui/material/Checkbox';
|
|
@@ -11,7 +10,7 @@ import { FormControlLabelProps, SwitchProps, ListProps, IconButtonProps, ToggleB
|
|
|
11
10
|
import { UseControllerProps } from 'react-hook-form';
|
|
12
11
|
import { CountryIso2 } from 'react-international-phone';
|
|
13
12
|
import { AccordionProps } from '@mui/material/Accordion';
|
|
14
|
-
import {
|
|
13
|
+
import { FancyboxOptions } from '@fancyapps/ui';
|
|
15
14
|
import { KeenSliderOptions } from 'keen-slider/react';
|
|
16
15
|
import * as _emotion_styled from '@emotion/styled';
|
|
17
16
|
import * as _mui_system from '@mui/system';
|
|
@@ -651,7 +650,7 @@ declare const VacancyInfoItems: FC<VacancyInfoItemsProps>;
|
|
|
651
650
|
|
|
652
651
|
interface IVacancyContent {
|
|
653
652
|
title?: string;
|
|
654
|
-
description?: Document
|
|
653
|
+
description?: Document;
|
|
655
654
|
date?: string;
|
|
656
655
|
salary?: string;
|
|
657
656
|
location?: string;
|
|
@@ -702,7 +701,7 @@ declare function WhatIsYour({ className, text3, text2, text1, title, }: IWhatIsY
|
|
|
702
701
|
interface TextImageTileBlockProps {
|
|
703
702
|
className?: string;
|
|
704
703
|
title?: string | null;
|
|
705
|
-
text?: Document
|
|
704
|
+
text?: Document | string | null;
|
|
706
705
|
image?: string;
|
|
707
706
|
actionComponent?: ReactNode;
|
|
708
707
|
turn?: 'right' | 'left';
|
|
@@ -1114,12 +1113,21 @@ interface CustomCheckboxProps {
|
|
|
1114
1113
|
}
|
|
1115
1114
|
declare const Checkbox: FC<CustomCheckboxProps>;
|
|
1116
1115
|
|
|
1116
|
+
interface SelectChildProps {
|
|
1117
|
+
collapseParent?: () => void;
|
|
1118
|
+
}
|
|
1119
|
+
interface ClickComponentProps {
|
|
1120
|
+
onClick?: (e: MouseEvent<HTMLElement>) => void;
|
|
1121
|
+
onClose?: () => void;
|
|
1122
|
+
collapse?: string;
|
|
1123
|
+
ref?: any;
|
|
1124
|
+
}
|
|
1117
1125
|
interface SelectProProps$1 {
|
|
1118
1126
|
placeholder?: string;
|
|
1119
1127
|
childTitle?: string;
|
|
1120
|
-
clickComponent?: ReactElement
|
|
1128
|
+
clickComponent?: ReactElement<ClickComponentProps>;
|
|
1121
1129
|
btnStartIcon?: ReactElement;
|
|
1122
|
-
actionsComponent?: ReactElement
|
|
1130
|
+
actionsComponent?: ReactElement<SelectChildProps>;
|
|
1123
1131
|
intermediateChild?: ReactElement;
|
|
1124
1132
|
startIcon?: ReactElement;
|
|
1125
1133
|
disableCloseButton?: boolean;
|
|
@@ -1141,7 +1149,7 @@ interface SelectProProps$1 {
|
|
|
1141
1149
|
openOnHover?: boolean;
|
|
1142
1150
|
smallDropdown?: boolean;
|
|
1143
1151
|
}
|
|
1144
|
-
declare const Select:
|
|
1152
|
+
declare const Select: (props: PropsWithChildren<SelectProProps$1>) => react_jsx_runtime.JSX.Element;
|
|
1145
1153
|
|
|
1146
1154
|
interface SelectProProps {
|
|
1147
1155
|
placeholder?: string;
|
|
@@ -1151,14 +1159,14 @@ interface SelectProProps {
|
|
|
1151
1159
|
upperCase?: boolean;
|
|
1152
1160
|
bold?: boolean;
|
|
1153
1161
|
}
|
|
1154
|
-
declare const SimpleSelect:
|
|
1162
|
+
declare const SimpleSelect: ({ children, placeholder, fullContainerWidth, overButton, small, upperCase, bold, }: PropsWithChildren<SelectProProps>) => react_jsx_runtime.JSX.Element;
|
|
1155
1163
|
|
|
1156
|
-
|
|
1157
|
-
collapseParent?:
|
|
1164
|
+
type SelectContentProps = PropsWithChildren<{
|
|
1165
|
+
collapseParent?: () => void;
|
|
1158
1166
|
currentValue?: string;
|
|
1159
1167
|
onChange?: (value?: string, tag?: string) => void;
|
|
1160
|
-
}
|
|
1161
|
-
declare const SelectContent: (props: SelectContentProps
|
|
1168
|
+
}>;
|
|
1169
|
+
declare const SelectContent: (props: SelectContentProps) => react_jsx_runtime.JSX.Element;
|
|
1162
1170
|
|
|
1163
1171
|
type outLinkType = 'viber' | 'telegram' | 'tel' | 'googleMaps' | 'mail' | 'link' | 'whatsapp';
|
|
1164
1172
|
|
|
@@ -1510,13 +1518,13 @@ declare const H5: FC<HProps>;
|
|
|
1510
1518
|
declare const H6: FC<HProps>;
|
|
1511
1519
|
|
|
1512
1520
|
interface RichTextBlockProps {
|
|
1513
|
-
body: Document
|
|
1521
|
+
body: Document | null | any;
|
|
1514
1522
|
className?: string;
|
|
1515
1523
|
}
|
|
1516
1524
|
declare const RichTextBlock: FC<RichTextBlockProps>;
|
|
1517
1525
|
|
|
1518
1526
|
interface FancyBoxProps {
|
|
1519
|
-
options?: Partial<
|
|
1527
|
+
options?: Partial<FancyboxOptions>;
|
|
1520
1528
|
delegate?: string;
|
|
1521
1529
|
}
|
|
1522
1530
|
declare const FancyBox: FC<PropsWithChildren<FancyBoxProps>>;
|