mayak-common-library 0.0.107 → 0.0.109

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
@@ -1,7 +1,7 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import { ButtonProps } from '@mui/material/Button';
3
3
  import * as React from 'react';
4
- import React__default, { FC, PropsWithChildren, ReactElement, MouseEvent } from 'react';
4
+ import React__default, { FC, PropsWithChildren, ReactElement, MouseEvent, ReactNode } from 'react';
5
5
  import { IconButtonProps } from '@mui/material/IconButton/IconButton';
6
6
  import { SelectProps } from '@mui/material/Select/Select';
7
7
  import { SystemStyleObject } from '@mui/system/styleFunctionSx/styleFunctionSx';
@@ -277,4 +277,24 @@ interface HeaderProps {
277
277
 
278
278
  declare const Header: FC<HeaderProps>;
279
279
 
280
- export { AppBar, ArticleCard, Autocomplete, CustomAvatar as Avatar, CustomBadge as Badge, BannerBlock, BigNumber, Button, CategoryCard, CustomCheckbox as Checkbox, Chip, FromToInput, Greet, Header, IconButton, ImageContainer, CustomInput as Input, JobCard, List, ListItem, CustomMenuItem as MenuItem, PhoneInput, Providers, CustomRadio as Radio, CustomRadioGroup as RadioGroup, RealtorCard, RealtyCard, SearchInput, CustomSelect as Select, SelectPro, CustomSlider as Slider, CustomSwitch as Switch, TeamPersonCard, Text, TextBlock, TitleBlock, ToggleButton, ToggleButtonGroup, ToggleButtonsWithLabel };
280
+ interface LogoBlockProps {
281
+ classes?: string;
282
+ small?: boolean;
283
+ locale: string;
284
+ }
285
+ declare const LogoBlock: FC<LogoBlockProps>;
286
+
287
+ type outLinkType = 'viber' | 'telegram' | 'tel' | 'googleMaps' | 'mail' | 'link' | 'whatsapp';
288
+
289
+ interface LinkOutProps {
290
+ data?: string;
291
+ type: outLinkType;
292
+ title: string | ReactNode;
293
+ classes?: string;
294
+ blank?: boolean;
295
+ }
296
+ declare const LinkOut: FC<LinkOutProps>;
297
+
298
+ declare const LocaleSwitcherToggle: () => react_jsx_runtime.JSX.Element;
299
+
300
+ export { AppBar, ArticleCard, Autocomplete, CustomAvatar as Avatar, CustomBadge as Badge, BannerBlock, BigNumber, Button, CategoryCard, CustomCheckbox as Checkbox, Chip, FromToInput, Greet, Header, IconButton, ImageContainer, CustomInput as Input, JobCard, LinkOut, List, ListItem, LocaleSwitcherToggle, LogoBlock, CustomMenuItem as MenuItem, PhoneInput, Providers, CustomRadio as Radio, CustomRadioGroup as RadioGroup, RealtorCard, RealtyCard, SearchInput, CustomSelect as Select, SelectPro, CustomSlider as Slider, CustomSwitch as Switch, TeamPersonCard, Text, TextBlock, TitleBlock, ToggleButton, ToggleButtonGroup, ToggleButtonsWithLabel };
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import { ButtonProps } from '@mui/material/Button';
3
3
  import * as React from 'react';
4
- import React__default, { FC, PropsWithChildren, ReactElement, MouseEvent } from 'react';
4
+ import React__default, { FC, PropsWithChildren, ReactElement, MouseEvent, ReactNode } from 'react';
5
5
  import { IconButtonProps } from '@mui/material/IconButton/IconButton';
6
6
  import { SelectProps } from '@mui/material/Select/Select';
7
7
  import { SystemStyleObject } from '@mui/system/styleFunctionSx/styleFunctionSx';
@@ -277,4 +277,24 @@ interface HeaderProps {
277
277
 
278
278
  declare const Header: FC<HeaderProps>;
279
279
 
280
- export { AppBar, ArticleCard, Autocomplete, CustomAvatar as Avatar, CustomBadge as Badge, BannerBlock, BigNumber, Button, CategoryCard, CustomCheckbox as Checkbox, Chip, FromToInput, Greet, Header, IconButton, ImageContainer, CustomInput as Input, JobCard, List, ListItem, CustomMenuItem as MenuItem, PhoneInput, Providers, CustomRadio as Radio, CustomRadioGroup as RadioGroup, RealtorCard, RealtyCard, SearchInput, CustomSelect as Select, SelectPro, CustomSlider as Slider, CustomSwitch as Switch, TeamPersonCard, Text, TextBlock, TitleBlock, ToggleButton, ToggleButtonGroup, ToggleButtonsWithLabel };
280
+ interface LogoBlockProps {
281
+ classes?: string;
282
+ small?: boolean;
283
+ locale: string;
284
+ }
285
+ declare const LogoBlock: FC<LogoBlockProps>;
286
+
287
+ type outLinkType = 'viber' | 'telegram' | 'tel' | 'googleMaps' | 'mail' | 'link' | 'whatsapp';
288
+
289
+ interface LinkOutProps {
290
+ data?: string;
291
+ type: outLinkType;
292
+ title: string | ReactNode;
293
+ classes?: string;
294
+ blank?: boolean;
295
+ }
296
+ declare const LinkOut: FC<LinkOutProps>;
297
+
298
+ declare const LocaleSwitcherToggle: () => react_jsx_runtime.JSX.Element;
299
+
300
+ export { AppBar, ArticleCard, Autocomplete, CustomAvatar as Avatar, CustomBadge as Badge, BannerBlock, BigNumber, Button, CategoryCard, CustomCheckbox as Checkbox, Chip, FromToInput, Greet, Header, IconButton, ImageContainer, CustomInput as Input, JobCard, LinkOut, List, ListItem, LocaleSwitcherToggle, LogoBlock, CustomMenuItem as MenuItem, PhoneInput, Providers, CustomRadio as Radio, CustomRadioGroup as RadioGroup, RealtorCard, RealtyCard, SearchInput, CustomSelect as Select, SelectPro, CustomSlider as Slider, CustomSwitch as Switch, TeamPersonCard, Text, TextBlock, TitleBlock, ToggleButton, ToggleButtonGroup, ToggleButtonsWithLabel };
package/dist/index.js CHANGED
@@ -700,8 +700,11 @@ __export(src_exports, {
700
700
  ImageContainer: () => ImageContainer_default,
701
701
  Input: () => Input_default,
702
702
  JobCard: () => JobCard_default,
703
+ LinkOut: () => LinkOut_default,
703
704
  List: () => List_default,
704
705
  ListItem: () => ListItem_default,
706
+ LocaleSwitcherToggle: () => LocaleSwitcherToggle_default,
707
+ LogoBlock: () => LogoBlock_default,
705
708
  MapIcon: () => map_search_default,
706
709
  MenuItem: () => MenuItem_default,
707
710
  PhoneInput: () => PhoneInput_default,
@@ -2191,7 +2194,7 @@ function BannerBlock({
2191
2194
 
2192
2195
  // src/components/layout/Header.tsx
2193
2196
  var import_material35 = require("@mui/material");
2194
- var import_next_intl5 = require("next-intl");
2197
+ var import_next_intl4 = require("next-intl");
2195
2198
 
2196
2199
  // src/lib/i18n/navigation.ts
2197
2200
  var import_navigation3 = require("next-intl/navigation");
@@ -3238,13 +3241,12 @@ var SvgRulogo = (props) => /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("svg",
3238
3241
  var rulogo_default = SvgRulogo;
3239
3242
 
3240
3243
  // src/components/layout/LogoBlock.tsx
3241
- var import_next_intl4 = require("next-intl");
3242
3244
  var import_jsx_runtime62 = require("react/jsx-runtime");
3243
3245
  var LogoBlock = ({
3244
3246
  classes,
3245
- small = false
3247
+ small = false,
3248
+ locale
3246
3249
  }) => {
3247
- const locale = (0, import_next_intl4.useLocale)();
3248
3250
  const renderLogo = () => {
3249
3251
  const className = small ? "transform scale-[0.68] absolute left-[-14px] top-[-9px]" : "md:transform md:scale-[0.68] md:absolute md:left-[-14px] md:top-[-9px]";
3250
3252
  switch (locale) {
@@ -3270,8 +3272,9 @@ var LogoBlock_default = LogoBlock;
3270
3272
  // src/components/layout/Header.tsx
3271
3273
  var import_jsx_runtime63 = require("react/jsx-runtime");
3272
3274
  var Header = ({ menuItems, mainPhone }) => {
3273
- const t = (0, import_next_intl5.useTranslations)();
3275
+ const t = (0, import_next_intl4.useTranslations)();
3274
3276
  const pathname = usePathname();
3277
+ const locale = (0, import_next_intl4.useLocale)();
3275
3278
  return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
3276
3279
  import_material35.Box,
3277
3280
  {
@@ -3283,7 +3286,7 @@ var Header = ({ menuItems, mainPhone }) => {
3283
3286
  maxWidth: CONTAINER_WIDTH,
3284
3287
  className: "flex justify-between items-center py-[24px] md:pt-[18px] md:pb-[0px]",
3285
3288
  children: [
3286
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(LogoBlock_default, {}),
3289
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(LogoBlock_default, { locale }),
3287
3290
  /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(import_material35.Box, { className: "flex flex-col gap-5 md:hidden", children: [
3288
3291
  /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(import_material35.Box, { className: "flex gap-10 justify-end items-center", children: [
3289
3292
  mainPhone && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
@@ -3350,8 +3353,11 @@ var Header_default = Header;
3350
3353
  ImageContainer,
3351
3354
  Input,
3352
3355
  JobCard,
3356
+ LinkOut,
3353
3357
  List,
3354
3358
  ListItem,
3359
+ LocaleSwitcherToggle,
3360
+ LogoBlock,
3355
3361
  MapIcon,
3356
3362
  MenuItem,
3357
3363
  PhoneInput,
package/dist/index.mjs CHANGED
@@ -1507,7 +1507,7 @@ function BannerBlock({
1507
1507
 
1508
1508
  // src/components/layout/Header.tsx
1509
1509
  import { Box as Box17, Container as Container5 } from "@mui/material";
1510
- import { useTranslations as useTranslations2 } from "next-intl";
1510
+ import { useLocale as useLocale3, useTranslations as useTranslations2 } from "next-intl";
1511
1511
 
1512
1512
  // src/lib/i18n/navigation.ts
1513
1513
  import { createSharedPathnamesNavigation } from "next-intl/navigation";
@@ -2554,13 +2554,12 @@ var SvgRulogo = (props) => /* @__PURE__ */ jsxs26("svg", __spreadProps(__spreadV
2554
2554
  var rulogo_default = SvgRulogo;
2555
2555
 
2556
2556
  // src/components/layout/LogoBlock.tsx
2557
- import { useLocale as useLocale3 } from "next-intl";
2558
2557
  import { jsx as jsx61 } from "react/jsx-runtime";
2559
2558
  var LogoBlock = ({
2560
2559
  classes,
2561
- small = false
2560
+ small = false,
2561
+ locale
2562
2562
  }) => {
2563
- const locale = useLocale3();
2564
2563
  const renderLogo = () => {
2565
2564
  const className = small ? "transform scale-[0.68] absolute left-[-14px] top-[-9px]" : "md:transform md:scale-[0.68] md:absolute md:left-[-14px] md:top-[-9px]";
2566
2565
  switch (locale) {
@@ -2588,6 +2587,7 @@ import { jsx as jsx62, jsxs as jsxs27 } from "react/jsx-runtime";
2588
2587
  var Header = ({ menuItems, mainPhone }) => {
2589
2588
  const t = useTranslations2();
2590
2589
  const pathname = usePathname();
2590
+ const locale = useLocale3();
2591
2591
  return /* @__PURE__ */ jsx62(
2592
2592
  Box17,
2593
2593
  {
@@ -2599,7 +2599,7 @@ var Header = ({ menuItems, mainPhone }) => {
2599
2599
  maxWidth: CONTAINER_WIDTH,
2600
2600
  className: "flex justify-between items-center py-[24px] md:pt-[18px] md:pb-[0px]",
2601
2601
  children: [
2602
- /* @__PURE__ */ jsx62(LogoBlock_default, {}),
2602
+ /* @__PURE__ */ jsx62(LogoBlock_default, { locale }),
2603
2603
  /* @__PURE__ */ jsxs27(Box17, { className: "flex flex-col gap-5 md:hidden", children: [
2604
2604
  /* @__PURE__ */ jsxs27(Box17, { className: "flex gap-10 justify-end items-center", children: [
2605
2605
  mainPhone && /* @__PURE__ */ jsx62(
@@ -2665,8 +2665,11 @@ export {
2665
2665
  ImageContainer_default as ImageContainer,
2666
2666
  Input_default as Input,
2667
2667
  JobCard_default as JobCard,
2668
+ LinkOut_default as LinkOut,
2668
2669
  List_default as List,
2669
2670
  ListItem_default as ListItem,
2671
+ LocaleSwitcherToggle_default as LocaleSwitcherToggle,
2672
+ LogoBlock_default as LogoBlock,
2670
2673
  map_search_default as MapIcon,
2671
2674
  MenuItem_default as MenuItem,
2672
2675
  PhoneInput_default as PhoneInput,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mayak-common-library",
3
- "version": "0.0.107",
3
+ "version": "0.0.109",
4
4
  "private": false,
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",