mayak-common-library 0.2.3 → 0.2.5

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.cts 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 { ReactNode, FC, PropsWithChildren, ReactElement, MouseEventHandler, MouseEvent, ButtonHTMLAttributes, DetailedHTMLProps, InputHTMLAttributes, TextareaHTMLAttributes } from 'react';
3
+ import { PropsWithChildren, ReactNode, FC, ReactElement, MouseEventHandler, MouseEvent, ButtonHTMLAttributes, DetailedHTMLProps, InputHTMLAttributes, TextareaHTMLAttributes } from 'react';
4
4
  import { Document } from '@contentful/rich-text-types';
5
5
  import * as zustand from 'zustand';
6
6
  import { StateCreator } from 'zustand';
@@ -43,21 +43,30 @@ declare const SITE: {
43
43
  };
44
44
  type Site = (typeof SITE)[keyof typeof SITE];
45
45
 
46
- interface IWorker$2 {
46
+ interface HProps extends PropsWithChildren {
47
+ className?: string;
48
+ smallerXs?: boolean;
49
+ leftXs?: boolean;
50
+ bold?: boolean;
51
+ uppercase?: boolean;
52
+ catalog?: boolean;
53
+ }
54
+ interface IWorker {
47
55
  imageUrl?: string | null;
48
- description?: string;
49
- firstName?: string;
50
- lastName?: string;
51
- fullName?: string;
52
- position?: string;
53
- instagram?: string;
54
- facebook?: string;
55
- youTube?: string;
56
- linkedIn?: string;
57
- phone?: string;
58
- email?: string;
59
- bgImageSrc?: string;
56
+ description?: string | null;
57
+ firstName?: string | null;
58
+ lastName?: string | null;
59
+ fullName?: string | null;
60
+ position?: string | null;
61
+ instagram?: string | null;
62
+ facebook?: string | null;
63
+ youTube?: string | null;
64
+ linkedIn?: string | null;
65
+ phone?: string | null;
66
+ email?: string | null;
67
+ bgImageSrc?: string | null;
60
68
  }
69
+
61
70
  interface IBoxItem$5 {
62
71
  text1?: string;
63
72
  text2?: string;
@@ -68,7 +77,7 @@ interface IAboutCompanyMain {
68
77
  text1?: string;
69
78
  text2?: string;
70
79
  box?: IBoxItem$5[];
71
- workerCeo?: IWorker$2;
80
+ workerCeo?: IWorker;
72
81
  className?: string;
73
82
  site?: Site;
74
83
  actionButton?: ReactNode;
@@ -122,7 +131,7 @@ interface IAnyLevelBlock {
122
131
  declare function AnyLevelBlock({ block1, block2, className, }: IAnyLevelBlock): react_jsx_runtime.JSX.Element;
123
132
 
124
133
  interface AnyQuestionsBlockProps {
125
- worker?: IWorker$2;
134
+ worker?: IWorker;
126
135
  className?: string;
127
136
  title?: string;
128
137
  }
@@ -248,43 +257,15 @@ interface BlockImagesProps {
248
257
  }
249
258
  declare function BlockImages({ className, title }: BlockImagesProps): react_jsx_runtime.JSX.Element;
250
259
 
251
- interface IWorker$1 {
252
- imageUrl?: string;
253
- description?: string;
254
- firstName?: string;
255
- lastName?: string;
256
- fullName?: string;
257
- position?: string;
258
- instagram?: string;
259
- facebook?: string;
260
- youTube?: string;
261
- linkedIn?: string;
262
- phone?: string;
263
- email?: string;
264
- }
265
260
  interface BlockOurTeamProps {
266
261
  title?: string;
267
262
  text?: string;
268
- team?: IWorker$1[];
263
+ team?: IWorker[];
269
264
  className?: string;
270
265
  full?: boolean;
271
266
  }
272
- declare const BlockOurTeam: FC<BlockOurTeamProps>;
267
+ declare const BlockOurTeam: ({ team, title, text, className, full, }: BlockOurTeamProps) => react_jsx_runtime.JSX.Element | null;
273
268
 
274
- interface IWorker {
275
- imageUrl?: string;
276
- description?: string;
277
- firstName?: string;
278
- lastName?: string;
279
- fullName?: string;
280
- position?: string;
281
- instagram?: string;
282
- facebook?: string;
283
- youTube?: string;
284
- linkedIn?: string;
285
- phone?: string;
286
- email?: string;
287
- }
288
269
  interface IBlockOurTeam {
289
270
  title?: string;
290
271
  text?: string;
@@ -549,16 +530,16 @@ interface SocialBlockMainProps {
549
530
  declare const SocialBlockMain: FC<SocialBlockMainProps>;
550
531
 
551
532
  interface TeamWorkerBlockProps {
552
- image_url?: string;
553
- text?: string;
554
- name?: string;
555
- position?: string;
533
+ image_url?: string | null;
534
+ text?: string | null;
535
+ name?: string | null;
536
+ position?: string | null;
556
537
  social?: {
557
- path?: string;
538
+ path?: string | null;
558
539
  icon?: ReactNode;
559
540
  }[];
560
541
  turn?: 'right' | 'left';
561
- bgSrc?: string;
542
+ bgSrc?: string | null;
562
543
  }
563
544
  declare const TeamWorkerBlock: FC<TeamWorkerBlockProps>;
564
545
 
@@ -1440,15 +1421,6 @@ interface IPaginatorSimpleProps {
1440
1421
  }
1441
1422
  declare function PaginatorSimple({ total }: IPaginatorSimpleProps): react_jsx_runtime.JSX.Element;
1442
1423
 
1443
- interface HProps extends PropsWithChildren {
1444
- className?: string;
1445
- smallerXs?: boolean;
1446
- leftXs?: boolean;
1447
- bold?: boolean;
1448
- uppercase?: boolean;
1449
- catalog?: boolean;
1450
- }
1451
-
1452
1424
  declare const H1: FC<HProps>;
1453
1425
 
1454
1426
  declare const H2: FC<HProps>;
@@ -1495,9 +1467,9 @@ declare const BreadCrumbs: FC<BreadCrumbsProps>;
1495
1467
 
1496
1468
  interface TeamPersonCardProps {
1497
1469
  image_url?: string | null;
1498
- name?: string;
1499
- position?: string;
1500
- text?: string;
1470
+ name?: string | null;
1471
+ position?: string | null;
1472
+ text?: string | null;
1501
1473
  }
1502
1474
  declare const TeamPersonCard: ({ image_url, name, position, text, }: TeamPersonCardProps) => react_jsx_runtime.JSX.Element;
1503
1475
 
@@ -1537,7 +1509,7 @@ interface IArticleCard extends IArticle {
1537
1509
  declare function ArticleCard({ imageUrl, className, title, text, }: IArticleCard): react_jsx_runtime.JSX.Element;
1538
1510
 
1539
1511
  interface IRealtorCard {
1540
- realtor?: IWorker$2;
1512
+ realtor?: IWorker;
1541
1513
  site: Site;
1542
1514
  actionComponent?: ReactNode;
1543
1515
  }
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 { ReactNode, FC, PropsWithChildren, ReactElement, MouseEventHandler, MouseEvent, ButtonHTMLAttributes, DetailedHTMLProps, InputHTMLAttributes, TextareaHTMLAttributes } from 'react';
3
+ import { PropsWithChildren, ReactNode, FC, ReactElement, MouseEventHandler, MouseEvent, ButtonHTMLAttributes, DetailedHTMLProps, InputHTMLAttributes, TextareaHTMLAttributes } from 'react';
4
4
  import { Document } from '@contentful/rich-text-types';
5
5
  import * as zustand from 'zustand';
6
6
  import { StateCreator } from 'zustand';
@@ -43,21 +43,30 @@ declare const SITE: {
43
43
  };
44
44
  type Site = (typeof SITE)[keyof typeof SITE];
45
45
 
46
- interface IWorker$2 {
46
+ interface HProps extends PropsWithChildren {
47
+ className?: string;
48
+ smallerXs?: boolean;
49
+ leftXs?: boolean;
50
+ bold?: boolean;
51
+ uppercase?: boolean;
52
+ catalog?: boolean;
53
+ }
54
+ interface IWorker {
47
55
  imageUrl?: string | null;
48
- description?: string;
49
- firstName?: string;
50
- lastName?: string;
51
- fullName?: string;
52
- position?: string;
53
- instagram?: string;
54
- facebook?: string;
55
- youTube?: string;
56
- linkedIn?: string;
57
- phone?: string;
58
- email?: string;
59
- bgImageSrc?: string;
56
+ description?: string | null;
57
+ firstName?: string | null;
58
+ lastName?: string | null;
59
+ fullName?: string | null;
60
+ position?: string | null;
61
+ instagram?: string | null;
62
+ facebook?: string | null;
63
+ youTube?: string | null;
64
+ linkedIn?: string | null;
65
+ phone?: string | null;
66
+ email?: string | null;
67
+ bgImageSrc?: string | null;
60
68
  }
69
+
61
70
  interface IBoxItem$5 {
62
71
  text1?: string;
63
72
  text2?: string;
@@ -68,7 +77,7 @@ interface IAboutCompanyMain {
68
77
  text1?: string;
69
78
  text2?: string;
70
79
  box?: IBoxItem$5[];
71
- workerCeo?: IWorker$2;
80
+ workerCeo?: IWorker;
72
81
  className?: string;
73
82
  site?: Site;
74
83
  actionButton?: ReactNode;
@@ -122,7 +131,7 @@ interface IAnyLevelBlock {
122
131
  declare function AnyLevelBlock({ block1, block2, className, }: IAnyLevelBlock): react_jsx_runtime.JSX.Element;
123
132
 
124
133
  interface AnyQuestionsBlockProps {
125
- worker?: IWorker$2;
134
+ worker?: IWorker;
126
135
  className?: string;
127
136
  title?: string;
128
137
  }
@@ -248,43 +257,15 @@ interface BlockImagesProps {
248
257
  }
249
258
  declare function BlockImages({ className, title }: BlockImagesProps): react_jsx_runtime.JSX.Element;
250
259
 
251
- interface IWorker$1 {
252
- imageUrl?: string;
253
- description?: string;
254
- firstName?: string;
255
- lastName?: string;
256
- fullName?: string;
257
- position?: string;
258
- instagram?: string;
259
- facebook?: string;
260
- youTube?: string;
261
- linkedIn?: string;
262
- phone?: string;
263
- email?: string;
264
- }
265
260
  interface BlockOurTeamProps {
266
261
  title?: string;
267
262
  text?: string;
268
- team?: IWorker$1[];
263
+ team?: IWorker[];
269
264
  className?: string;
270
265
  full?: boolean;
271
266
  }
272
- declare const BlockOurTeam: FC<BlockOurTeamProps>;
267
+ declare const BlockOurTeam: ({ team, title, text, className, full, }: BlockOurTeamProps) => react_jsx_runtime.JSX.Element | null;
273
268
 
274
- interface IWorker {
275
- imageUrl?: string;
276
- description?: string;
277
- firstName?: string;
278
- lastName?: string;
279
- fullName?: string;
280
- position?: string;
281
- instagram?: string;
282
- facebook?: string;
283
- youTube?: string;
284
- linkedIn?: string;
285
- phone?: string;
286
- email?: string;
287
- }
288
269
  interface IBlockOurTeam {
289
270
  title?: string;
290
271
  text?: string;
@@ -549,16 +530,16 @@ interface SocialBlockMainProps {
549
530
  declare const SocialBlockMain: FC<SocialBlockMainProps>;
550
531
 
551
532
  interface TeamWorkerBlockProps {
552
- image_url?: string;
553
- text?: string;
554
- name?: string;
555
- position?: string;
533
+ image_url?: string | null;
534
+ text?: string | null;
535
+ name?: string | null;
536
+ position?: string | null;
556
537
  social?: {
557
- path?: string;
538
+ path?: string | null;
558
539
  icon?: ReactNode;
559
540
  }[];
560
541
  turn?: 'right' | 'left';
561
- bgSrc?: string;
542
+ bgSrc?: string | null;
562
543
  }
563
544
  declare const TeamWorkerBlock: FC<TeamWorkerBlockProps>;
564
545
 
@@ -1440,15 +1421,6 @@ interface IPaginatorSimpleProps {
1440
1421
  }
1441
1422
  declare function PaginatorSimple({ total }: IPaginatorSimpleProps): react_jsx_runtime.JSX.Element;
1442
1423
 
1443
- interface HProps extends PropsWithChildren {
1444
- className?: string;
1445
- smallerXs?: boolean;
1446
- leftXs?: boolean;
1447
- bold?: boolean;
1448
- uppercase?: boolean;
1449
- catalog?: boolean;
1450
- }
1451
-
1452
1424
  declare const H1: FC<HProps>;
1453
1425
 
1454
1426
  declare const H2: FC<HProps>;
@@ -1495,9 +1467,9 @@ declare const BreadCrumbs: FC<BreadCrumbsProps>;
1495
1467
 
1496
1468
  interface TeamPersonCardProps {
1497
1469
  image_url?: string | null;
1498
- name?: string;
1499
- position?: string;
1500
- text?: string;
1470
+ name?: string | null;
1471
+ position?: string | null;
1472
+ text?: string | null;
1501
1473
  }
1502
1474
  declare const TeamPersonCard: ({ image_url, name, position, text, }: TeamPersonCardProps) => react_jsx_runtime.JSX.Element;
1503
1475
 
@@ -1537,7 +1509,7 @@ interface IArticleCard extends IArticle {
1537
1509
  declare function ArticleCard({ imageUrl, className, title, text, }: IArticleCard): react_jsx_runtime.JSX.Element;
1538
1510
 
1539
1511
  interface IRealtorCard {
1540
- realtor?: IWorker$2;
1512
+ realtor?: IWorker;
1541
1513
  site: Site;
1542
1514
  actionComponent?: ReactNode;
1543
1515
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mayak-common-library",
3
- "version": "0.2.3",
3
+ "version": "0.2.5",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",